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 testDeleteAll()
 {
     $description = "Average Joe";
     $name = "Human";
     $test_race = new Race($description, $name);
     $test_race->save();
     $description2 = "Cool Dude";
     $name2 = "Elf";
     $test_race2 = new Race($description2, $name2);
     $test_race2->save();
     //Act
     Race::deleteAll();
     //Assert
     $result = Race::getAll();
     $this->assertEquals([], $result);
 }