예제 #1
0
 protected function tearDown()
 {
     Book::deleteAll();
     Copy::deleteAll();
     Author::deleteAll();
     Patron::deleteAll();
 }
 protected function tearDown()
 {
     Checkout::deleteAll();
     Book::deleteAll();
     Author::deleteAll();
     Patron::deleteAll();
 }
예제 #3
0
 protected function tearDown()
 {
     Author::deleteAll();
     Book::deleteAll();
     Patron::deleteAll();
     Copies::deleteAll();
 }
예제 #4
0
 protected function tearDown()
 {
     Bar::deleteAll();
     Token::deleteAll();
     Item::deleteAll();
     Patron::deleteAll();
 }
예제 #5
0
 protected function tearDown()
 {
     Copy::deleteAll();
     Book::deleteAll();
     Checkout::deleteAll();
     Patron::deleteAll();
 }
예제 #6
0
 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);
 }
예제 #7
0
 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);
 }
예제 #8
0
 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);
 }
예제 #9
0
 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);
 }
예제 #11
0
 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);
 }
예제 #12
0
 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);
 }
예제 #13
0
 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);
 }
예제 #14
0
 protected function tearDown()
 {
     Copy::deleteAll();
     Patron::deleteAll();
 }
예제 #15
0
 protected function tearDown()
 {
     Patron::deleteAll();
     //Checkout::deleteAll();
 }
예제 #16
0
 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);
 }