public function BuildTestBase::assertCommandOutputContains in Drupal 8
Same name and namespace in other branches
- 9 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.
1 call to BuildTestBase::assertCommandOutputContains()
- 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 280
Class
- BuildTestBase
- Provides a workspace to test build processes.
Namespace
Drupal\BuildTests\FrameworkCode
public function assertCommandOutputContains($expected) {
$this
->assertStringContainsString($expected, $this->commandProcess
->getOutput());
}