diff --git a/lib/Alchemy/Phrasea/Authentication/RegistrationService.php b/lib/Alchemy/Phrasea/Authentication/RegistrationService.php index 7da19cdde1..67b203f9fd 100644 --- a/lib/Alchemy/Phrasea/Authentication/RegistrationService.php +++ b/lib/Alchemy/Phrasea/Authentication/RegistrationService.php @@ -38,7 +38,7 @@ class RegistrationService 'fax' => 'setFax', 'job' => 'setJob', 'company' => 'setCompany', - 'position' => 'setPosition', + 'position' => 'setJob', 'geonameid' => 'setGeonameId', 'notifications' => 'setMailNotificationsActivated' ); diff --git a/tests/Alchemy/Tests/Phrasea/Controller/Root/LoginTest.php b/tests/Alchemy/Tests/Phrasea/Controller/Root/LoginTest.php index a54630c467..0fed1aff41 100644 --- a/tests/Alchemy/Tests/Phrasea/Controller/Root/LoginTest.php +++ b/tests/Alchemy/Tests/Phrasea/Controller/Root/LoginTest.php @@ -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));