diff --git a/tests/Alchemy/Tests/Phrasea/Core/Configuration/Fixtures/configuration-setup.yml b/tests/Alchemy/Tests/Phrasea/Core/Configuration/Fixtures/configuration-setup.yml index 104c4837e4..e1ea10930e 100644 --- a/tests/Alchemy/Tests/Phrasea/Core/Configuration/Fixtures/configuration-setup.yml +++ b/tests/Alchemy/Tests/Phrasea/Core/Configuration/Fixtures/configuration-setup.yml @@ -182,4 +182,8 @@ xsendfile: enabled: false type: nginx mapping: [] +h264-pseudo-streaming: + enabled: false + type: nginx + mapping: [] plugins: [] diff --git a/tests/Alchemy/Tests/Phrasea/Core/Configuration/Fixtures/configuration.yml b/tests/Alchemy/Tests/Phrasea/Core/Configuration/Fixtures/configuration.yml index 104c4837e4..e1ea10930e 100644 --- a/tests/Alchemy/Tests/Phrasea/Core/Configuration/Fixtures/configuration.yml +++ b/tests/Alchemy/Tests/Phrasea/Core/Configuration/Fixtures/configuration.yml @@ -182,4 +182,8 @@ xsendfile: enabled: false type: nginx mapping: [] +h264-pseudo-streaming: + enabled: false + type: nginx + mapping: [] plugins: [] diff --git a/tests/Alchemy/Tests/Phrasea/Model/Manipulator/UserManipulatorTest.php b/tests/Alchemy/Tests/Phrasea/Model/Manipulator/UserManipulatorTest.php index 3a76544134..5b12ef952b 100644 --- a/tests/Alchemy/Tests/Phrasea/Model/Manipulator/UserManipulatorTest.php +++ b/tests/Alchemy/Tests/Phrasea/Model/Manipulator/UserManipulatorTest.php @@ -56,10 +56,16 @@ class UserManipulatorTest extends \PhraseanetTestCase ->disableOriginalConstructor() ->getMock(); - $geoname->expects($this->once()) + $geoname->expects($this->any()) ->method('get') - ->with($this->equalTo('country')) - ->will($this->returnValue(['code' => 'fr'])); + ->will($this->returnCallback(function ($prop) { + switch ($prop) { + case 'country': + return ['code' => 'fr']; + case 'name': + return 'Orléans'; + } + })); $geonamesConnector = $this->getMockBuilder('Alchemy\Geonames\Connector') ->disableOriginalConstructor()