protected function WebTestBase::isInChildSite in Drupal 8
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 core/
modules/ simpletest/ src/ Tests/ BrokenSetUpTest.php - Sets up a Drupal site for running functional and integration tests.
- BrokenSetUpTest::tearDown in core/
modules/ simpletest/ src/ Tests/ BrokenSetUpTest.php - Cleans up after testing.
- BrokenSetUpTest::testMethod in core/
modules/ simpletest/ src/ Tests/ BrokenSetUpTest.php - Runs this test case from within the simpletest child site.
- MissingCheckedRequirementsTest::checkRequirements in core/
modules/ simpletest/ src/ Tests/ MissingCheckedRequirementsTest.php - Overrides checkRequirements().
- MissingCheckedRequirementsTest::testCheckRequirements in core/
modules/ simpletest/ src/ Tests/ MissingCheckedRequirementsTest.php - Ensures test will not run when requirements are missing.
File
- core/
modules/ simpletest/ 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;
}