Fenos\Notifynder\Contracts\CategoryDB::delete PHP Method

delete() public method

Delete category by ID.
public delete ( $categoryId ) : mixed
$categoryId
return mixed
    public function delete($categoryId);

Usage Example

 /** @test */
 function it_delete_a_category_by_id(CategoryDB $categoryRepository)
 {
     $categoryId = 1;
     $categoryRepository->delete($categoryId);
     $categoryRepository->delete($categoryId)->shouldBeCalled()->willReturn(1);
     $this->delete($categoryId)->shouldReturn(1);
 }
All Usage Examples Of Fenos\Notifynder\Contracts\CategoryDB::delete