Skip to content

Instantly share code, notes, and snippets.

@jackrabbithanna
Created December 24, 2017 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jackrabbithanna/bd038c0ed0dcb2de21271d99d97d323e to your computer and use it in GitHub Desktop.
Save jackrabbithanna/bd038c0ed0dcb2de21271d99d97d323e to your computer and use it in GitHub Desktop.
class LmsLrsTestCaseSelenium extends \PHPUnit_Extensions_Selenium2TestCase {
/**
* Standard phpunit setup method.
*/
public function setUp() {
global $bootstrap;
if (!empty($bootstrap)) {
$this->bootstrap = $bootstrap;
}
// Setup the browser.
$this->setBrowser('chrome');
$capabilities = array(
'chromeOptions' => array('args' => array("disable-bundled-ppapi-flash"))
);
if (!empty($bootstrap['headless'])) {
$capabilities['chromeOptions']['args'][] = 'headless';
}
$this->setDesiredCapabilities($capabilities);
$this->setBrowserUrl($this->config['base_url']);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment