protected function tearDown() { CharClass::deleteAll(); Character::deleteAll(); Race::deleteAll(); Skill::deleteAll(); Stat::deleteAll(); Description::deleteAll(); Background::deleteAll(); }
function test_deleteAll() { //Arrange $description_id = 1; $race_id = 1; $stat_id = 1; $test_character = new Character($description_id, $race_id, $stat_id); $test_character->save(); $description_id2 = 2; $race_id2 = 2; $stat_id2 = 2; $test_character2 = new Character($description_id2, $race_id2, $stat_id2); $test_character2->save(); //Act Character::deleteAll(); $result = Character::getAll(); //Assert $this->assertEquals([], $result); }
protected function tearDown() { CharClass::deleteAll(); Character::deleteAll(); }
protected function tearDown() { Background::deleteAll(); Character::deleteAll(); }
protected function tearDown() { Skill::deleteAll(); Character::deleteAll(); }
protected function tearDown() { Description::deleteAll(); Character::deleteAll(); }