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
type: nginx
mapping: []
h264-pseudo-streaming:
enabled: false
type: nginx
mapping: []
plugins: []

View File

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

View File

@@ -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()