/** * @expectedException \Illuminate\Database\Eloquent\ModelNotFoundException */ public function test_can_update_categories_fail() { $this->repository->update(['name' => 'Category updated', 'description' => 'Description updated'], 10); }