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