public function test_update_with_empty_data() { $repository = App::make(Repo::class); $data = []; $error = m::mock(RepositoryException::class); $this->setExpectedException(RepositoryException::class); $repository->update($data, 1); }