public function BuildTestBase::assertCommandSuccessful in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::assertCommandSuccessful()
Asserts that the last command ran without error.
This assertion checks whether the last command returned an exit code of 0.
If you need to assert a different exit code, then you can use executeCommand() and perform a different assertion on the process object.
4 calls to BuildTestBase::assertCommandSuccessful()
- BuildTestTest::testWorkspace in core/
tests/ Drupal/ BuildTests/ Framework/ Tests/ BuildTestTest.php - Ensure that workspaces work.
- ComposerProjectTemplatesTest::makeVendorPackage in core/
tests/ Drupal/ BuildTests/ Composer/ Template/ ComposerProjectTemplatesTest.php - Creates a test package that points to all the projects in vendor.
- ComposerProjectTemplatesTest::testTemplateCreateProject in core/
tests/ Drupal/ BuildTests/ Composer/ Template/ ComposerProjectTemplatesTest.php - @dataProvider provideTemplateCreateProject
- ComposerValidateTest::testValidateComposer in core/
tests/ Drupal/ BuildTests/ Composer/ ComposerValidateTest.php - @dataProvider provideComposerJson
File
- core/
tests/ Drupal/ BuildTests/ Framework/ BuildTestBase.php, line 292
Class
- BuildTestBase
- Provides a workspace to test build processes.
Namespace
Drupal\BuildTests\FrameworkCode
public function assertCommandSuccessful() {
return $this
->assertCommandExitCode(0);
}