Fix incorrect setter mapping and lax up assertions

This commit is contained in:
Thibaud Fabre
2015-10-20 18:51:57 +02:00
parent 4c1a8432bb
commit bcb502301b
2 changed files with 5 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ class RegistrationService
'fax' => 'setFax',
'job' => 'setJob',
'company' => 'setCompany',
'position' => 'setPosition',
'position' => 'setJob',
'geonameid' => 'setGeonameId',
'notifications' => 'setMailNotificationsActivated'
);

View File

@@ -504,7 +504,7 @@ class LoginTest extends \PhraseanetAuthenticatedWebTestCase
->disableOriginalConstructor()
->getMock();
self::$DI['app']['authentication.providers']->expects($this->once())
self::$DI['app']['authentication.providers']->expects($this->any())
->method('get')
->with($this->equalTo('provider-test'))
->will($this->returnValue($provider));
@@ -1406,7 +1406,7 @@ class LoginTest extends \PhraseanetAuthenticatedWebTestCase
->disableOriginalConstructor()
->getMock();
self::$DI['app']['authentication.providers']->expects($this->once())
self::$DI['app']['authentication.providers']->expects($this->any())
->method('get')
->with($this->equalTo('provider-test'))
->will($this->returnValue($provider));
@@ -1455,7 +1455,7 @@ class LoginTest extends \PhraseanetAuthenticatedWebTestCase
->disableOriginalConstructor()
->getMock();
self::$DI['app']['authentication.providers']->expects($this->once())
self::$DI['app']['authentication.providers']->expects($this->any())
->method('get')
->with($this->equalTo('provider-test'))
->will($this->throwException(new InvalidArgumentException('Provider not found')));
@@ -1472,7 +1472,7 @@ class LoginTest extends \PhraseanetAuthenticatedWebTestCase
->disableOriginalConstructor()
->getMock();
self::$DI['app']['authentication.providers']->expects($this->once())
self::$DI['app']['authentication.providers']->expects($this->any())
->method('get')
->with($this->equalTo($name))
->will($this->returnValue($provider));