Fix latest merge

This commit is contained in:
Romain Neutron
2014-03-03 17:49:06 +01:00
parent dcd9b838e4
commit 122692f1e6
3 changed files with 17 additions and 3 deletions

View File

@@ -182,4 +182,8 @@ xsendfile:
enabled: false enabled: false
type: nginx type: nginx
mapping: [] mapping: []
h264-pseudo-streaming:
enabled: false
type: nginx
mapping: []
plugins: [] plugins: []

View File

@@ -182,4 +182,8 @@ xsendfile:
enabled: false enabled: false
type: nginx type: nginx
mapping: [] mapping: []
h264-pseudo-streaming:
enabled: false
type: nginx
mapping: []
plugins: [] plugins: []

View File

@@ -56,10 +56,16 @@ class UserManipulatorTest extends \PhraseanetTestCase
->disableOriginalConstructor() ->disableOriginalConstructor()
->getMock(); ->getMock();
$geoname->expects($this->once()) $geoname->expects($this->any())
->method('get') ->method('get')
->with($this->equalTo('country')) ->will($this->returnCallback(function ($prop) {
->will($this->returnValue(['code' => 'fr'])); switch ($prop) {
case 'country':
return ['code' => 'fr'];
case 'name':
return 'Orléans';
}
}));
$geonamesConnector = $this->getMockBuilder('Alchemy\Geonames\Connector') $geonamesConnector = $this->getMockBuilder('Alchemy\Geonames\Connector')
->disableOriginalConstructor() ->disableOriginalConstructor()