本文整理匯總了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);
}
}