function test_updateAvailable() { //Arrange $available = true; $book_id = 4; $test_copy = new Copy($available, $book_id); $test_copy->save(); $test_copy->updateAvailable(false); //Act //$id = $test_copy->getId(); //$test_copy2 = new Copy($available2, $book_id, $id); $result = $test_copy->getAvailable(); //Assert $this->assertEquals(false, $result); }