function FailureMarkerTest::testGetMessageWithoutThrowable
@covers ::getMessage @testWith [true] [false]
File
-
core/
modules/ package_manager/ tests/ src/ Kernel/ FailureMarkerTest.php, line 25
Class
- FailureMarkerTest
- @coversDefaultClass \Drupal\package_manager\FailureMarker @group package_manager @internal
Namespace
Drupal\Tests\package_manager\KernelCode
public function testGetMessageWithoutThrowable(bool $include_backtrace) : void {
$failure_marker = $this->container
->get(FailureMarker::class);
$failure_marker->write($this->createStage(), t('Disastrous catastrophe!'));
$this->assertMatchesRegularExpression('/^Disastrous catastrophe!$/', $failure_marker->getMessage($include_backtrace));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.