protected function WebTestBase::isInChildSite in SimpleTest 8.3
Returns whether the test is being executed from within a test site.
Mainly used by recursive tests (i.e. to test the testing framework).
Return value
bool TRUE if this test was instantiated in a request within the test site, FALSE otherwise.
See also
\Drupal\Core\DrupalKernel::bootConfiguration()
7 calls to WebTestBase::isInChildSite()
- BrokenSetUpTest::setUp in src/
Tests/ BrokenSetUpTest.php - Sets up a Drupal site for running functional and integration tests.
- BrokenSetUpTest::tearDown in src/
Tests/ BrokenSetUpTest.php - Cleans up after testing.
- BrokenSetUpTest::testMethod in src/
Tests/ BrokenSetUpTest.php - Runs this test case from within the simpletest child site.
- MissingCheckedRequirementsTest::checkRequirements in src/
Tests/ MissingCheckedRequirementsTest.php - Overrides checkRequirements().
- MissingCheckedRequirementsTest::testCheckRequirements in src/
Tests/ MissingCheckedRequirementsTest.php - Ensures test will not run when requirements are missing.
File
- src/
WebTestBase.php, line 764
Class
- WebTestBase
- Test case for typical Drupal tests.
Namespace
Drupal\simpletestCode
protected function isInChildSite() {
return DRUPAL_TEST_IN_CHILD_SITE;
}