function ValidationResultTest::testCreateErrorResult

@covers ::createError

@dataProvider providerValidConstructorArguments

File

core/modules/package_manager/tests/src/Unit/ValidationResultTest.php, line 56

Class

ValidationResultTest
@coversDefaultClass \Drupal\package_manager\ValidationResult @group package_manager @internal

Namespace

Drupal\Tests\package_manager\Unit

Code

public function testCreateErrorResult(array $messages, ?string $summary) : void {
    $summary = $summary ? t($summary) : NULL;
    $result = ValidationResult::createError($messages, $summary);
    $this->assertResultValid($result, $messages, $summary, SystemManager::REQUIREMENT_ERROR);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.