You are here

public function BuildTestBase::assertCommandOutputContains in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::assertCommandOutputContains()

Assert that text is present in the output of the most recent command.

Parameters

string $expected: Text we expect to find in the output of the command.

2 calls to BuildTestBase::assertCommandOutputContains()
ComposerProjectTemplatesTest::assertDrupalVersion in core/tests/Drupal/BuildTests/Composer/Template/ComposerProjectTemplatesTest.php
Assert that the VERSION constant in Drupal.php is the expected value.
QuickStartTestBase::installQuickStart in core/tests/Drupal/BuildTests/QuickStart/QuickStartTestBase.php
Install a Drupal site using the quick start feature.

File

core/tests/Drupal/BuildTests/Framework/BuildTestBase.php, line 274

Class

BuildTestBase
Provides a workspace to test build processes.

Namespace

Drupal\BuildTests\Framework

Code

public function assertCommandOutputContains($expected) {
  $this
    ->assertStringContainsString($expected, $this->commandProcess
    ->getOutput());
}