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 test_deleteAll() { //Arrange $name = "Fighter"; $description = "stuff"; $test_class = new Background($name, $description); $test_class->save(); $name2 = "Wizard"; $description2 = "other stuff"; $test_class2 = new Background($name2, $description2); $test_class2->save(); //Act Background::deleteAll(); $result = Background::getAll(); //Assert $this->assertEquals([], $result); }