Example #1
0
 function it_knows_if_action_with_given_name_already_exists(Action $action)
 {
     $action->getName()->willReturn('read_book');
     $this->addAction($action);
     $this->hasAction('read_book')->shouldReturn(true);
     $this->hasAction('delete_book')->shouldReturn(false);
 }