You are here

public function ValidationResultTest::testCreateErrorResultException in Automatic Updates 8.2

@covers ::createError

File

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

Class

ValidationResultTest
@coversDefaultClass \Drupal\automatic_updates\Validation\ValidationResult

Namespace

Drupal\Tests\automatic_updates\Unit

Code

public function testCreateErrorResultException() : void {
  $this
    ->expectException(\InvalidArgumentException::class);
  $this
    ->expectExceptionMessage('If more than one message is provided, a summary is required.');
  ValidationResult::createError([
    'Something is wrong',
    'Something else is also wrong',
  ], NULL);
}