Ejemplo n.º 1
0
 /**
  * @return TagServiceInterface|Mockery\Mock
  */
 public function getTagService()
 {
     $tag = $this->dummyData->getTag();
     $tagService = $this->getMockeryMock(TagServiceInterface::class);
     $tagService->shouldReceive('findOneById')->andReturn($tag);
     $tagService->shouldReceive('getAllTags')->andReturn([$tag]);
     return $tagService;
 }