/**
  * Should be able to delete a tag.
  */
 public function testDestroy()
 {
     $tagId = $this->generator()->anyInteger();
     $this->tagRepository->expects($this->atLeastOnce())->method('deleteById')->with($tagId);
     $this->responseFactoryWillMakeRedirect();
     $this->tagController->destroy($tagId);
 }
 /**
  * Should be able to get a view response for a product.
  */
 public function testViewAction()
 {
     $tag = new Tag();
     $tag->id = $this->generator()->anyInteger();
     $tag->name = $this->generator()->anyString();
     $this->tagRepository->expects($this->atLeastOnce())->method('loadById')->with($tag->id)->willReturn($tag);
     $this->tagController->viewAction($tag->id, $tag->name);
 }