コード例 #1
0
ファイル: FinalizeTest.php プロジェクト: civilianemail/dnd
 protected function tearDown()
 {
     CharClass::deleteAll();
     Character::deleteAll();
     Race::deleteAll();
     Skill::deleteAll();
     Stat::deleteAll();
     Description::deleteAll();
     Background::deleteAll();
 }
コード例 #2
0
ファイル: CharacterTest.php プロジェクト: civilianemail/dnd
 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);
 }
コード例 #3
0
ファイル: CharClassTest.php プロジェクト: civilianemail/dnd
 protected function tearDown()
 {
     CharClass::deleteAll();
     Character::deleteAll();
 }
コード例 #4
0
ファイル: BackgroundTest.php プロジェクト: civilianemail/dnd
 protected function tearDown()
 {
     Background::deleteAll();
     Character::deleteAll();
 }
コード例 #5
0
ファイル: SkillTest.php プロジェクト: civilianemail/dnd
 protected function tearDown()
 {
     Skill::deleteAll();
     Character::deleteAll();
 }
コード例 #6
0
ファイル: DescriptionTest.php プロジェクト: civilianemail/dnd
 protected function tearDown()
 {
     Description::deleteAll();
     Character::deleteAll();
 }