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