public function testBasicQuery() { TestManager::loadBasicDummyData(); $database = new DatabaseManager(); $resource = $database->query("SHOW TABLES"); $this->assertNotEquals(false, $resource); }
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()); }
protected function setUp() { //loads a verified user 'testuser' with blid '4833' and email 'email@email.com` and password 'asdf' TestManager::loadBasicDummyData(); }
protected function setUp() { //creates a tag 'dum tag' associated with one addon TestManager::loadBasicDummyData(); }