Created
October 7, 2014 16:00
-
-
Save seagoj/41cc4f65b0ad9abecb75 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function it_saves_values_to_repository( | |
Devtools\Model $model, | |
Repository\UserRepositoryAdapter $repository | |
) { | |
$repository | |
->getProperties() | |
->shouldBeCalled() | |
->willReturn( | |
[ | |
'userId', | |
'userName', | |
'firstName', | |
'lastName' | |
] | |
); | |
$model->set($this->export(), 'users')->shouldBeCalled(); | |
$repository->beConstructedWith($model); | |
$this->lastName = 'NewLastName'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment