Skip to content

Instantly share code, notes, and snippets.

@seagoj
Created October 7, 2014 16:00
Show Gist options
  • Save seagoj/41cc4f65b0ad9abecb75 to your computer and use it in GitHub Desktop.
Save seagoj/41cc4f65b0ad9abecb75 to your computer and use it in GitHub Desktop.
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