本文整理汇总了PHP中TestManager::loadBasicDummyData方法的典型用法代码示例。如果您正苦于以下问题:PHP TestManager::loadBasicDummyData方法的具体用法?PHP TestManager::loadBasicDummyData怎么用?PHP TestManager::loadBasicDummyData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TestManager
的用法示例。
在下文中一共展示了TestManager::loadBasicDummyData方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testBasicQuery
public function testBasicQuery()
{
TestManager::loadBasicDummyData();
$database = new DatabaseManager();
$resource = $database->query("SHOW TABLES");
$this->assertNotEquals(false, $resource);
}
示例2: setUpBeforeClass
public static function setUpBeforeClass()
{
InterfaceTest::$process = proc_open("java \"-Dwebdriver.chrome.driver=res/chromedriver.exe\" -jar res/selenium-server-standalone-2.48.2.jar", [["pipe", "r"], ["pipe", "w"]], $pipe);
if (InterfaceTest::$process === false) {
throw new Exception("Failed to start selenium server");
}
//loads a verified user 'testuser' with blid '4833' and email 'email@email.com` and password 'asdf'
TestManager::loadBasicDummyData();
InterfaceTest::$webDriver = RemoteWebDriver::create("http://localhost:4444/wd/hub", DesiredCapabilities::chrome());
}
示例3: setUp
protected function setUp()
{
//loads a verified user 'testuser' with blid '4833' and email 'email@email.com` and password 'asdf'
TestManager::loadBasicDummyData();
}