function ValidationResultTest::testCreateWarningResultException
@covers ::createWarning
@dataProvider providerCreateExceptions
Parameters
string[] $messages: The warning messages of the validation result.
string $expected_exception_message: The expected exception message.
File
-
core/
modules/ package_manager/ tests/ src/ Unit/ ValidationResultTest.php, line 72
Class
- ValidationResultTest
- @coversDefaultClass \Drupal\package_manager\ValidationResult @group package_manager @internal
Namespace
Drupal\Tests\package_manager\UnitCode
public function testCreateWarningResultException(array $messages, string $expected_exception_message) : void {
$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessage($expected_exception_message);
ValidationResult::createWarning($messages, NULL);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.