本文整理汇总了PHP中Character::deleteAll方法的典型用法代码示例。如果您正苦于以下问题:PHP Character::deleteAll方法的具体用法?PHP Character::deleteAll怎么用?PHP Character::deleteAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Character
的用法示例。
在下文中一共展示了Character::deleteAll方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tearDown
protected function tearDown()
{
CharClass::deleteAll();
Character::deleteAll();
Race::deleteAll();
Skill::deleteAll();
Stat::deleteAll();
Description::deleteAll();
Background::deleteAll();
}
示例2: test_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);
}
示例3: tearDown
protected function tearDown()
{
CharClass::deleteAll();
Character::deleteAll();
}
示例4: tearDown
protected function tearDown()
{
Background::deleteAll();
Character::deleteAll();
}
示例5: tearDown
protected function tearDown()
{
Skill::deleteAll();
Character::deleteAll();
}
示例6: tearDown
protected function tearDown()
{
Description::deleteAll();
Character::deleteAll();
}