本文整理匯總了PHP中Drupal\simpletest\WebTestBase::rebuildAll方法的典型用法代碼示例。如果您正苦於以下問題:PHP WebTestBase::rebuildAll方法的具體用法?PHP WebTestBase::rebuildAll怎麽用?PHP WebTestBase::rebuildAll使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Drupal\simpletest\WebTestBase
的用法示例。
在下文中一共展示了WebTestBase::rebuildAll方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: rebuildAll
/**
* {@inheritdoc}
*/
protected function rebuildAll()
{
// We know the rebuild causes notices, so don't exit on failure.
$die_on_fail = $this->dieOnFail;
$this->dieOnFail = FALSE;
parent::rebuildAll();
// Remove the notices we get due to the menu link rebuild prior to running
// the system updates for the schema change.
foreach ($this->assertions as $key => $assertion) {
if ($assertion['message_group'] == 'Notice' && basename($assertion['file']) == 'MenuTreeStorage.php' && strpos($assertion['message'], 'unserialize(): Error at offset 0') !== FALSE) {
unset($this->assertions[$key]);
$this->deleteAssert($assertion['message_id']);
$this->results['#exception']--;
}
}
$this->dieOnFail = $die_on_fail;
}