コード例 #1
0
 protected function tearDown()
 {
     Book::deleteAll();
     Copy::deleteAll();
     Author::deleteAll();
     Patron::deleteAll();
 }
コード例 #2
0
 protected function tearDown()
 {
     Checkout::deleteAll();
     Book::deleteAll();
     Author::deleteAll();
     Patron::deleteAll();
 }
コード例 #3
0
ファイル: CopiesTest.php プロジェクト: jschold/Library
 protected function tearDown()
 {
     Author::deleteAll();
     Book::deleteAll();
     Patron::deleteAll();
     Copies::deleteAll();
 }
コード例 #4
0
ファイル: BarTest.php プロジェクト: kellimargaret/Beer-Me
 protected function tearDown()
 {
     Bar::deleteAll();
     Token::deleteAll();
     Item::deleteAll();
     Patron::deleteAll();
 }
コード例 #5
0
ファイル: CopyTest.php プロジェクト: kevintokheim/Library
 protected function tearDown()
 {
     Copy::deleteAll();
     Book::deleteAll();
     Checkout::deleteAll();
     Patron::deleteAll();
 }
コード例 #6
0
ファイル: PatronTest.php プロジェクト: kevintokheim/Library
 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
ファイル: PatronTest.php プロジェクト: r-hills/library-1
 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
ファイル: PatronTest.php プロジェクト: bborealis/library-1
 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
ファイル: PatronTest.php プロジェクト: CaseyH33/Beer_Me
 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);
 }
コード例 #10
0
 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
ファイル: PatronTest.php プロジェクト: r-hills/Library
 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
ファイル: PatronTest.php プロジェクト: jlbethel/library-1
 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
ファイル: CopyTest.php プロジェクト: bdspen/library_day1
 protected function tearDown()
 {
     Copy::deleteAll();
     Patron::deleteAll();
 }
コード例 #15
0
ファイル: PatronTest.php プロジェクト: umamiMike/Library
 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);
 }