You are here

public function ValidationResultTest::testCreateWarningResult in Automatic Updates 8.2

@covers ::createWarning

@dataProvider providerValidConstructorArguments

File

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

Class

ValidationResultTest
@coversDefaultClass \Drupal\automatic_updates\Validation\ValidationResult

Namespace

Drupal\Tests\automatic_updates\Unit

Code

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);
}