You are here

public function ValidationResultTest::testCreateErrorResult in Automatic Updates 8.2

@covers ::createError

@dataProvider providerValidConstructorArguments

File

tests/src/Unit/ValidationResultTest.php, line 33

Class

ValidationResultTest
@coversDefaultClass \Drupal\automatic_updates\Validation\ValidationResult

Namespace

Drupal\Tests\automatic_updates\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);
}