Commit 168ca91b authored by Guy Thouret's avatar Guy Thouret

(fix) Regression in UpdateUserStateSpec - #841

1 merge request!285Reward Factors for User Activity
Pipeline #83946894 passed with stages
in 9 minutes and 48 seconds
......@@ -22,12 +22,11 @@ class UpdateUserStateSpec extends ObjectBehavior
public function it_should_update_user_if_activity_state_change(UserState $userState, User $user)
{
$userState->getState()->shouldBeCalled()->willReturn(UserState::STATE_NEW);
$userState->getReferenceDateMs()->shouldBeCalled()->willReturn(1563753600000);
$userState->getUserGuid()->shouldBeCalled()->willReturn(1001);
$userState->getStateChange()->shouldBeCalled()->willReturn(1);
$userState->export()->shouldBeCalled()->willReturn([]);
$user->setUserState(UserState::STATE_NEW)->shouldBeCalled()->willReturn($user);
$user->setUserStateUpdatedMs(1563753600000)->shouldBeCalled()->willReturn($user);
$user->setUserStateUpdatedMs(time() * 1000)->shouldBeCalled()->willReturn($user);
$user->save()->shouldBeCalled();
$this->update();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment