You are here

public function BuildTestBase::assertErrorOutputContains in Drupal 9

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

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

Parameters

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

3 calls to BuildTestBase::assertErrorOutputContains()
ComposerProjectTemplatesTest::getCoreStability in core/tests/Drupal/BuildTests/Composer/Template/ComposerProjectTemplatesTest.php
Returns the stability of the current core version.
ComposerProjectTemplatesTest::testTemplateCreateProject in core/tests/Drupal/BuildTests/Composer/Template/ComposerProjectTemplatesTest.php
@dataProvider provideTemplateCreateProject
HtRouterTest::testHtRouter in core/tests/Drupal/BuildTests/Framework/Tests/HtRouterTest.php
@covers ::instantiateServer

File

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

Class

BuildTestBase
Provides a workspace to test build processes.

Namespace

Drupal\BuildTests\Framework

Code

public function assertErrorOutputContains($expected) {
  $this
    ->assertStringContainsString($expected, $this->commandProcess
    ->getErrorOutput());
}