protected function tearDown() { Book::deleteAll(); Copy::deleteAll(); Author::deleteAll(); Patron::deleteAll(); }
protected function tearDown() { Checkout::deleteAll(); Book::deleteAll(); Author::deleteAll(); Patron::deleteAll(); }
protected function tearDown() { Author::deleteAll(); Book::deleteAll(); Patron::deleteAll(); Copies::deleteAll(); }
protected function tearDown() { Bar::deleteAll(); Token::deleteAll(); Item::deleteAll(); Patron::deleteAll(); }
protected function tearDown() { Copy::deleteAll(); Book::deleteAll(); Checkout::deleteAll(); Patron::deleteAll(); }
function testDeleteAll() { //Arrange $name = "Intro to Art"; $test_patron = new Patron($name); $test_patron->save(); $name2 = "Intro to Spanish"; $test_patron2 = new Patron($name2); $test_patron2->save(); //Act Patron::deleteAll(); $result = Patron::getAll(); //Assert $this->assertEquals([], $result); }
function test_deleteAll() { //Arrange $name = "Suzie Palloozi"; $phone = "1-800-439-0398"; $test_patron = new Patron($name, $phone); $test_patron->save(); $name2 = "Tac Zoltani"; $phone2 = "1-800-407-3930"; $test_patron2 = new Patron($name2, $phone2); $test_patron2->save(); //Act Patron::deleteAll(); //Assert $result = Patron::getAll(); $this->assertEquals([], $result); }
function testDeleteAll() { //Arrange $name = "Jim Bob"; $id = 1; $test_patron = new Patron($name, $id); $test_patron->save(); $name2 = "Sally Sue"; $id2 = 2; $test_patron2 = new Patron($name, $id); $test_patron2->save(); //Act Patron::deleteAll(); $result = Patron::getAll(); //Assert $this->assertEquals([], $result); }
function testDeleteAll() { //Arrange $name = "Kyle Pratuch"; $email = "*****@*****.**"; $test_patron = new Patron($name, $email); $test_patron->save(); $name2 = "Jason Bethel"; $email2 = "*****@*****.**"; $test_patron2 = new Patron($name2, $email2); $test_patron2->save(); //Act Patron::deleteAll(); $result = Patron::getAll(); //Assert $this->assertEquals([], $result); }
function testDeleteAll() { //Arrange $id = null; $name = "Marcos"; $phone = "4444"; $test_patron = new Patron($id, $name, $phone); $test_patron->save(); $name2 = "Phil"; $phone2 = "5555"; $test_patron2 = new Patron($id, $name2, $phone2); $test_patron2->save(); //Act Patron::deleteAll(); $result = Patron::getAll(); //Assert $this->assertEquals([], $result); }
function test_deleteAll() { //Arrange $name = "Dan Brown"; $phone = "3"; $email = "*****@*****.**"; $test_patron = new Patron($name, $phone, $email); $test_patron->save(); $name2 = "Ian Browne"; $phone2 = "4"; $email2 = "*****@*****.**"; $test_patron2 = new Patron($name2, $phone2, $email2); $test_patron2->save(); //Act Patron::deleteAll(); $result = Patron::getAll(); //Assert $this->assertEquals([], $result); }
function test_deleteAll() { //Arrange $patron_name = "James Patterson"; $id = 1; $patron_name2 = "Stephen King"; $id2 = 2; $test_patron = new Patron($patron_name, $id); $test_patron->save(); $test_course2 = new Patron($patron_name2, 2, $id2); $test_course2->save(); //Act Patron::deleteAll(); $result = Patron::getAll(); //Assert $this->assertEquals([], $result); }
function testDeleteAll() { //Arrange $patron_name = "Sally"; $phone_number = "1234567890"; $id = 1; $test_patron = new Patron($patron_name, $phone_number, $id); $test_patron->save(); $patron_name2 = "Joe"; $phone_number2 = "0987654321"; $id2 = 2; $test_patron2 = new Patron($patron_name2, $phone_number2, $id2); $test_patron2->save(); //Act Patron::deleteAll(); //Assert $result = Patron::getAll(); $this->assertEquals([], $result); }
protected function tearDown() { Copy::deleteAll(); Patron::deleteAll(); }
protected function tearDown() { Patron::deleteAll(); //Checkout::deleteAll(); }
function test_deleteAll() { $name = "Arnold Schwarzenegger"; $id = 1; $test_patron1 = new Patron($name, $id); $test_patron1->save(); $name2 = "Sylvester Stallone"; $id2 = 2; $test_patron2 = new Patron($name2, $id2); $test_patron2->save(); Patron::deleteAll(); $result = Patron::getAll(); $this->assertEquals([], $result); }