/** {@inheritdoc} */ protected function setUp() { $this->repository = new LocalBookRepository(); $this->repository->clear(); }
private function clearDatabase() { $this->books->clear(); $this->reservations->clear(); }
private function addBook(UuidInterface $bookId, $title, $authors, $isbn) { $this->repository->save(new Book($bookId, $title, $authors, $isbn)); }