function ValidationResultTest::testCreateWarningResult
@covers ::createWarning
@dataProvider providerValidConstructorArguments
File
-
core/
modules/ package_manager/ tests/ src/ Unit/ ValidationResultTest.php, line 24
Class
- ValidationResultTest
- @coversDefaultClass \Drupal\package_manager\ValidationResult @group package_manager @internal
Namespace
Drupal\Tests\package_manager\UnitCode
public function testCreateWarningResult(array $messages, ?string $summary) : void {
$summary = $summary ? t($summary) : NULL;
$result = ValidationResult::createWarning($messages, $summary);
$this->assertResultValid($result, $messages, $summary, SystemManager::REQUIREMENT_WARNING);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.