本文整理汇总了PHP中BaseTestCase::indexed方法的典型用法代码示例。如果您正苦于以下问题:PHP BaseTestCase::indexed方法的具体用法?PHP BaseTestCase::indexed怎么用?PHP BaseTestCase::indexed使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BaseTestCase
的用法示例。
在下文中一共展示了BaseTestCase::indexed方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUpPage
public function setUpPage()
{
$this->timeouts()->implicitWait(3000);
if (!self::$indexed) {
$this->url('/wp-admin/');
if ('Vagrant › Log In' == $this->title()) {
$this->byId('user_login')->click();
$this->keys('admin');
sleep(1);
// some reason too fast?
$this->byId('user_pass')->click();
$this->keys('vagrant');
$this->byId('wp-submit')->click();
}
$this->waitForTitle('Dashboard ‹ Vagrant — WordPress');
$this->url('http://localhost:8080/wordpress/wp-admin/admin.php?page=elastic_search&tab=index');
$this->assertEquals('ElasticSearch ‹ Vagrant — WordPress', $this->title());
sleep(1);
// some reason too fast?
$this->byId('wipedata')->click();
$this->byId('nhp-opts-save');
sleep(1);
$this->byId('reindex')->click();
$this->byCssSelector(".complete");
self::$indexed = true;
// give index time to refresh, would rather call refresh on index directly, too lazy :)
sleep(5);
}
}