function FailureMarkerTest::testGetMessageWithoutThrowable
Tests get message without throwable.
@legacy-covers ::getMessage
Attributes
#[TestWith([
TRUE,
])]
#[TestWith([
FALSE,
])]
File
-
core/
modules/ package_manager/ tests/ src/ Kernel/ FailureMarkerTest.php, line 35
Class
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(), $this->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.