function StatusCommandTest::applicationTester

Same name and namespace in other branches
  1. main core/modules/system/tests/src/Kernel/Command/StatusCommandTest.php \Drupal\Tests\system\Kernel\Command\StatusCommandTest::applicationTester()

Build our ApplicationTester.

2 calls to StatusCommandTest::applicationTester()
StatusCommandTest::testDrupalUriContext in core/modules/system/tests/src/Kernel/Command/StatusCommandTest.php
Tests variations of the 'DRUPAL_URI' context.
StatusCommandTest::testWithUrl in core/modules/system/tests/src/Kernel/Command/StatusCommandTest.php
Tests the example:command with the --url option forced into argv.

File

core/modules/system/tests/src/Kernel/Command/StatusCommandTest.php, line 107

Class

StatusCommandTest
Tests the 'system:status' command.

Namespace

Drupal\Tests\system\Kernel\Command

Code

private function applicationTester(array $context = []) : ApplicationTester {
  $application = include __DIR__ . '/../../../../../../../vendor/bin/dr';
  $application = $application($context);
  $application->setAutoExit(FALSE);
  return new ApplicationTester($application);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.