Exemplo n.º 1
0
 protected function tearDown()
 {
     CharClass::deleteAll();
     Skill::deleteAll();
     Race::deleteAll();
     Background::deleteAll();
 }
Exemplo n.º 2
0
 protected function tearDown()
 {
     CharClass::deleteAll();
     Character::deleteAll();
     Race::deleteAll();
     Skill::deleteAll();
     Stat::deleteAll();
     Description::deleteAll();
     Background::deleteAll();
 }
Exemplo n.º 3
0
 function test_deleteAll()
 {
     //Arrange
     $name = "Fighter";
     $description = "stuff";
     $test_class = new CharClass($name, $description);
     $test_class->save();
     $name2 = "Wizard";
     $description2 = "other stuff";
     $test_class2 = new CharClass($name2, $description2);
     $test_class2->save();
     //Act
     CharClass::deleteAll();
     $result = CharClass::getAll();
     //Assert
     $this->assertEquals([], $result);
 }
Exemplo n.º 4
0
 protected function tearDown()
 {
     Character::deleteAll();
     CharClass::deleteAll();
 }