function StatusCommandTest::applicationTester

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

Build our ApplicationTester.

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.