function BuildTestBase::assertCommandSuccessful
Same name and namespace in other branches
- 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.
2 calls to BuildTestBase::assertCommandSuccessful()
- LegacyScriptsTest::makeVendorPackage in core/
tests/ Drupal/ BuildTests/ Composer/ LegacyScriptsTest.php - Creates a test package that points to all the projects in vendor.
- LegacyScriptsTest::testVendorTestCodeCleanup in core/
tests/ Drupal/ BuildTests/ Composer/ LegacyScriptsTest.php - @covers ::vendorTestCodeCleanup[[api-linebreak]]
File
-
core/
tests/ Drupal/ BuildTests/ Framework/ BuildTestBase.php, line 303
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.