function it_creates_a_task(Authorizer $authorizer, TaskRepository $repository) { $authorizer->guest()->willReturn(false); $repository->create('...')->shouldBeCalled(); $this->store(); }
function it_should_return_a_specific_task(Authorizer $authorizer) { $authorizer->guest()->willReturn(false); $this->show()->shouldReturn('a task'); }