Commit a88597d7 authored by Guy Thouret's avatar Guy Thouret

(fix) Update spec test for UpdateUserState delegate as state it used does not...

(fix) Update spec test for UpdateUserState delegate as state it used does not make calls to send notifications any more
1 merge request!285Reward Factors for User Activity
Pipeline #84123242 passed with stages
in 10 minutes and 25 seconds
......@@ -21,11 +21,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->getState()->shouldBeCalled()->willReturn(UserState::STATE_CORE);
$userState->getUserGuid()->shouldBeCalled()->willReturn(1001);
$userState->getStateChange()->shouldBeCalled()->willReturn(1);
$userState->export()->shouldBeCalled()->willReturn([]);
$user->setUserState(UserState::STATE_NEW)->shouldBeCalled()->willReturn($user);
$user->setUserState(UserState::STATE_CORE)->shouldBeCalled()->willReturn($user);
$user->setUserStateUpdatedMs(time() * 1000)->shouldBeCalled()->willReturn($user);
$user->save()->shouldBeCalled();
......
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