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