Created
October 20, 2016 13:57
-
-
Save kleberncto/8e00ca473f94c4e383b1e0b80cbaf30e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\ParameterConfigRepository::shouldReceive('findOneByParameterCodeAndPartner') | |
->once() | |
->andReturnUsing(function ($code) { | |
$params = [ | |
'ftp' => '127.0.0.1', | |
'user' => 'fernandinho', | |
'password' => '1234' | |
]; | |
return $params[$code]; | |
}); | |
dump(\ParameterConfigRepository::findOneByParameterCodeAndPartner('ftp', new Partner())); | |
dump(\ParameterConfigRepository::findOneByParameterCodeAndPartner('user', new Partner())); | |
dump(\ParameterConfigRepository::findOneByParameterCodeAndPartner('password', new Partner())); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment