本文整理汇总了PHP中Plan::tieneEstructuraDefinida方法的典型用法代码示例。如果您正苦于以下问题:PHP Plan::tieneEstructuraDefinida方法的具体用法?PHP Plan::tieneEstructuraDefinida怎么用?PHP Plan::tieneEstructuraDefinida使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Plan
的用法示例。
在下文中一共展示了Plan::tieneEstructuraDefinida方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testTieneEstructuraDefinida
function testTieneEstructuraDefinida()
{
$this->assertFalse($this->Plan->tieneEstructuraDefinida(1));
$this->assertTrue($this->Plan->tieneEstructuraDefinida(2));
$this->assertFalse($this->Plan->tieneEstructuraDefinida(3));
$this->assertTrue($this->Plan->tieneEstructuraDefinida(8));
$this->assertTrue($this->Plan->tieneEstructuraDefinida(11));
$this->assertFalse($this->Plan->tieneEstructuraDefinida(7));
$this->Plan->id = 7;
$this->Plan->recursive = -1;
if (!$this->Plan->saveField('oferta_id', 3, false)) {
$this->fail('No se pudo guardar un campo del plan');
}
if (!$this->Plan->saveField('estructura_plan_id', 3, false)) {
$this->fail('No se pudo guardar la estructura sugerida');
}
$this->assertTrue($this->Plan->tieneEstructuraDefinida(7));
}