mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Fix incorrect setter mapping and lax up assertions
This commit is contained in:
@@ -38,7 +38,7 @@ class RegistrationService
|
|||||||
'fax' => 'setFax',
|
'fax' => 'setFax',
|
||||||
'job' => 'setJob',
|
'job' => 'setJob',
|
||||||
'company' => 'setCompany',
|
'company' => 'setCompany',
|
||||||
'position' => 'setPosition',
|
'position' => 'setJob',
|
||||||
'geonameid' => 'setGeonameId',
|
'geonameid' => 'setGeonameId',
|
||||||
'notifications' => 'setMailNotificationsActivated'
|
'notifications' => 'setMailNotificationsActivated'
|
||||||
);
|
);
|
||||||
|
@@ -504,7 +504,7 @@ class LoginTest extends \PhraseanetAuthenticatedWebTestCase
|
|||||||
->disableOriginalConstructor()
|
->disableOriginalConstructor()
|
||||||
->getMock();
|
->getMock();
|
||||||
|
|
||||||
self::$DI['app']['authentication.providers']->expects($this->once())
|
self::$DI['app']['authentication.providers']->expects($this->any())
|
||||||
->method('get')
|
->method('get')
|
||||||
->with($this->equalTo('provider-test'))
|
->with($this->equalTo('provider-test'))
|
||||||
->will($this->returnValue($provider));
|
->will($this->returnValue($provider));
|
||||||
@@ -1406,7 +1406,7 @@ class LoginTest extends \PhraseanetAuthenticatedWebTestCase
|
|||||||
->disableOriginalConstructor()
|
->disableOriginalConstructor()
|
||||||
->getMock();
|
->getMock();
|
||||||
|
|
||||||
self::$DI['app']['authentication.providers']->expects($this->once())
|
self::$DI['app']['authentication.providers']->expects($this->any())
|
||||||
->method('get')
|
->method('get')
|
||||||
->with($this->equalTo('provider-test'))
|
->with($this->equalTo('provider-test'))
|
||||||
->will($this->returnValue($provider));
|
->will($this->returnValue($provider));
|
||||||
@@ -1455,7 +1455,7 @@ class LoginTest extends \PhraseanetAuthenticatedWebTestCase
|
|||||||
->disableOriginalConstructor()
|
->disableOriginalConstructor()
|
||||||
->getMock();
|
->getMock();
|
||||||
|
|
||||||
self::$DI['app']['authentication.providers']->expects($this->once())
|
self::$DI['app']['authentication.providers']->expects($this->any())
|
||||||
->method('get')
|
->method('get')
|
||||||
->with($this->equalTo('provider-test'))
|
->with($this->equalTo('provider-test'))
|
||||||
->will($this->throwException(new InvalidArgumentException('Provider not found')));
|
->will($this->throwException(new InvalidArgumentException('Provider not found')));
|
||||||
@@ -1472,7 +1472,7 @@ class LoginTest extends \PhraseanetAuthenticatedWebTestCase
|
|||||||
->disableOriginalConstructor()
|
->disableOriginalConstructor()
|
||||||
->getMock();
|
->getMock();
|
||||||
|
|
||||||
self::$DI['app']['authentication.providers']->expects($this->once())
|
self::$DI['app']['authentication.providers']->expects($this->any())
|
||||||
->method('get')
|
->method('get')
|
||||||
->with($this->equalTo($name))
|
->with($this->equalTo($name))
|
||||||
->will($this->returnValue($provider));
|
->will($this->returnValue($provider));
|
||||||
|
Reference in New Issue
Block a user