function BuildTestBase::assertCommandOutputContains

Same name in other branches
  1. 9 core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::assertCommandOutputContains()
  2. 8.9.x core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::assertCommandOutputContains()
  3. 11.x 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()
ComposerBuildTestBase::assertDrupalVersion in core/tests/Drupal/BuildTests/Composer/ComposerBuildTestBase.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 284

Class

BuildTestBase
Provides a workspace to test build processes.

Namespace

Drupal\BuildTests\Framework

Code

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

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