function BuildTestBase::assertCommandSuccessful
Same name in other branches
- 9 core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::assertCommandSuccessful()
- 10 core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::assertCommandSuccessful()
- 11.x 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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.