find() public method

Find By Id.
public find ( $categoryId ) : mixed
$categoryId
return mixed
 /** @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);
 }