Commit adc64ef1 authored by Juan Manuel Solaro's avatar Juan Manuel Solaro

(fix) change spec it_should_not_save_when_previous_activity to...

(fix) change spec it_should_not_save_when_previous_activity to it_should_save_when_previous_activity
1 merge request!294WIP: epic/post-scheduler
Pipeline #77131659 passed with stages
in 10 minutes and 41 seconds
......@@ -102,7 +102,7 @@ class CreateActivitySpec extends ObjectBehavior
->shouldReturn(true);
}
function it_should_not_save_when_previous_activity(
function it_should_save_when_previous_activity(
Blog $blog
)
{
......@@ -118,8 +118,16 @@ class CreateActivitySpec extends ObjectBehavior
->shouldBeCalled()
->willReturn(['activity1']);
$this->saveAction->setEntity(Argument::type(Activity::class))
->shouldBeCalled()
->willReturn($this->saveAction);
$this->saveAction->save()
->shouldBeCalled()
->willReturn(true);
$this
->save($blog)
->shouldReturn(false);
->shouldReturn(true);
}
}
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