public function find($categoryId)
{
return $this->categoryModel->find($categoryId);
}
/** @test */ function it_delete_a_category_by_id() { $categoryToDelete = $this->createCategory(); $this->categoryRepo->delete($categoryToDelete->id); $tryToFindThatCategory = $this->categoryRepo->find($categoryToDelete->id); $this->assertEquals($tryToFindThatCategory, null); }