function test_getId() { //Arrange $book_name = "Gattica"; $book_id = 2; $test_book = new Book($book_name, $book_id); $test_book->save(); $author_name = "Aristole"; $author_id2 = 1; $test_author = new Author($author_name, $author_id2); $test_author->save(); $author_id = $test_author->getId(); $book_id = $test_book->getId(); $due_date = "2015-08-29"; $id = 3; $checkout_patron_id = 1; $test_book_list = new BookList($author_id, $book_id, $due_date, $checkout_patron_id, $id); $test_book_list->save(); //Act $result = $test_book_list->getId(); //Assert $this->assertEquals(true, is_numeric($result)); }