/**
  * @test
  */
 public function thatGets()
 {
     $id = 1;
     $entity = new EntityStub();
     $this->em->expects($this->once())->method('find')->with($this->equalTo(self::CLASS_NAME), $this->equalTo($id), $this->equalTo(0), $this->equalTo(null))->will($this->returnValue($entity));
     $retrievedEntity = $this->repository->get($id);
     $this->assertEquals($entity, $retrievedEntity);
 }
 /**
  * Delete Article
  * @param int $articleId
  * @return void
  */
 public function deleteArticle($articleId)
 {
     /** @var Article $article */
     $article = $this->repository->get($articleId);
     if (is_null($article)) {
         throw new ArticleNotFoundException();
     }
     $this->repository->remove($article);
 }