public function SimpleTestExampleTest::runningOnTestbot in Examples for Developers 8
Detect if we're running on PIFR testbot.
We can skip intentional failure if we're on the testbot. It happens that on the testbot the site under test is in a directory named 'checkout' or 'site_under_test'.
Return value
bool TRUE if running on testbot.
1 call to SimpleTestExampleTest::runningOnTestbot()
- SimpleTestExampleTest::testSimpleTestExampleEdit in testing_example/
src/ Tests/ SimpleTestExampleTest.php - Create a testing_example node and then see if our user can edit it.
File
- testing_example/
src/ Tests/ SimpleTestExampleTest.php, line 165
Class
- SimpleTestExampleTest
- Ensure that the simpletest_example content type provided functions properly.
Namespace
Drupal\testing_example\TestsCode
public function runningOnTestbot() {
// @todo: Add this line back once the testbot variable is available.
// https://www.drupal.org/node/2565181
// return env('DRUPALCI');
return TRUE;
}