protected function tearDown() { CharClass::deleteAll(); Skill::deleteAll(); Race::deleteAll(); Background::deleteAll(); }
protected function tearDown() { CharClass::deleteAll(); Character::deleteAll(); Race::deleteAll(); Skill::deleteAll(); Stat::deleteAll(); Description::deleteAll(); Background::deleteAll(); }
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); }