function 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.
5 calls to BuildTestBase::assertErrorOutputContains()
- ComponentsTaggedReleaseTest::testReleaseTagging in core/
tests/ Drupal/ BuildTests/ Composer/ Component/ ComponentsTaggedReleaseTest.php  - Validate release tagging and regeneration of dependencies.
 - 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  - @legacy-covers ::instantiateServer
 - InstallTest::testInstall in core/
tests/ Drupal/ BuildTests/ TestSiteApplication/ InstallTest.php  
File
- 
              core/
tests/ Drupal/ BuildTests/ Framework/ BuildTestBase.php, line 271  
Class
- BuildTestBase
 - Provides a workspace to test build processes.
 
Namespace
Drupal\BuildTests\FrameworkCode
public function assertErrorOutputContains($expected) {
  $this->assertStringContainsString($expected, $this->commandProcess
    ->getErrorOutput());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.