-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8124fe7
commit 347b9e4
Showing
6 changed files
with
199 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<?php // Moodle configuration file | ||
|
||
unset($CFG); | ||
global $CFG; | ||
$CFG = new stdClass(); | ||
|
||
$CFG->dbtype = 'mysqli'; | ||
$CFG->dblibrary = 'native'; | ||
$CFG->dbhost = 'localhost'; | ||
$CFG->dbname = 'moodle'; | ||
$CFG->dbuser = 'root'; | ||
$CFG->dbpass = ''; | ||
$CFG->prefix = 'mdl_'; | ||
$CFG->dboptions = [ | ||
'dbport' => '', | ||
]; | ||
|
||
$CFG->wwwroot = 'http://localhost/moodle'; | ||
$CFG->dataroot = '/path/to/moodledata'; | ||
$CFG->admin = 'admin'; | ||
|
||
$CFG->directorypermissions = 02777; | ||
|
||
// Show debugging messages. | ||
$CFG->debug = (E_ALL | E_STRICT); | ||
$CFG->debugdisplay = 1; | ||
|
||
// No emails. | ||
$CFG->noemailever = true; | ||
$CFG->noreplyaddress = '[email protected]'; | ||
|
||
// App settings. | ||
$CFG->behat_ionic_wwwroot = ''; | ||
|
||
// PHPUnit settings. | ||
$CFG->phpunit_prefix = 'phpu_'; | ||
$CFG->phpunit_dataroot = '/path/to/moodledata/phpu_moodledata'; | ||
|
||
// Behat settings. | ||
$CFG->behat_prefix = 'behat_'; | ||
$CFG->behat_dataroot = '/path/to/moodledata/behat_moodledata'; | ||
$CFG->behat_wwwroot = 'http://localhost:8000'; | ||
$CFG->behat_faildump_path = '/path/to/moodledata/behat_dump'; | ||
$CFG->behat_profiles = [ | ||
'default' => [ | ||
'browser' => 'firefox', | ||
'wd_host' => 'http://localhost:4444/wd/hub', | ||
'capabilities' => [], | ||
], | ||
'chrome' => [ | ||
'browser' => 'chrome', | ||
'wd_host' => 'http://localhost:4444/wd/hub', | ||
'capabilities' => ['extra_capabilities'=>['chromeOptions'=>['args'=>['--ignore-certificate-errors','--allow-running-insecure-content']]]], | ||
], | ||
'firefox' => [ | ||
'browser' => 'firefox', | ||
'wd_host' => 'http://localhost:4444/wd/hub', | ||
'capabilities' => [], | ||
], | ||
]; | ||
|
||
// Extra config. | ||
|
||
require_once(__DIR__.'/lib/setup.php'); | ||
// There is no php closing tag in this file, | ||
// it is intentional because it prevents trailing whitespace problems! |
66 changes: 66 additions & 0 deletions
66
tests/Fixture/example-config-with-firefox-capabilities.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<?php // Moodle configuration file | ||
|
||
unset($CFG); | ||
global $CFG; | ||
$CFG = new stdClass(); | ||
|
||
$CFG->dbtype = 'mysqli'; | ||
$CFG->dblibrary = 'native'; | ||
$CFG->dbhost = 'localhost'; | ||
$CFG->dbname = 'moodle'; | ||
$CFG->dbuser = 'root'; | ||
$CFG->dbpass = ''; | ||
$CFG->prefix = 'mdl_'; | ||
$CFG->dboptions = [ | ||
'dbport' => '', | ||
]; | ||
|
||
$CFG->wwwroot = 'http://localhost/moodle'; | ||
$CFG->dataroot = '/path/to/moodledata'; | ||
$CFG->admin = 'admin'; | ||
|
||
$CFG->directorypermissions = 02777; | ||
|
||
// Show debugging messages. | ||
$CFG->debug = (E_ALL | E_STRICT); | ||
$CFG->debugdisplay = 1; | ||
|
||
// No emails. | ||
$CFG->noemailever = true; | ||
$CFG->noreplyaddress = '[email protected]'; | ||
|
||
// App settings. | ||
$CFG->behat_ionic_wwwroot = ''; | ||
|
||
// PHPUnit settings. | ||
$CFG->phpunit_prefix = 'phpu_'; | ||
$CFG->phpunit_dataroot = '/path/to/moodledata/phpu_moodledata'; | ||
|
||
// Behat settings. | ||
$CFG->behat_prefix = 'behat_'; | ||
$CFG->behat_dataroot = '/path/to/moodledata/behat_moodledata'; | ||
$CFG->behat_wwwroot = 'http://localhost:8000'; | ||
$CFG->behat_faildump_path = '/path/to/moodledata/behat_dump'; | ||
$CFG->behat_profiles = [ | ||
'default' => [ | ||
'browser' => 'firefox', | ||
'wd_host' => 'http://localhost:4444/wd/hub', | ||
'capabilities' => ['extra_capabilities'=>['firefoxOptions'=>['args'=>['-headless']]]], | ||
], | ||
'chrome' => [ | ||
'browser' => 'chrome', | ||
'wd_host' => 'http://localhost:4444/wd/hub', | ||
'capabilities' => [], | ||
], | ||
'firefox' => [ | ||
'browser' => 'firefox', | ||
'wd_host' => 'http://localhost:4444/wd/hub', | ||
'capabilities' => ['extra_capabilities'=>['firefoxOptions'=>['args'=>['-headless']]]], | ||
], | ||
]; | ||
|
||
// Extra config. | ||
|
||
require_once(__DIR__.'/lib/setup.php'); | ||
// There is no php closing tag in this file, | ||
// it is intentional because it prevents trailing whitespace problems! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters