You are here

public function UpdaterTest::testInvalidProjectVersions in Automatic Updates 8.2

@covers ::begin

@dataProvider providerInvalidProjectVersions

File

tests/src/Kernel/UpdaterTest.php, line 60

Class

UpdaterTest
@coversDefaultClass \Drupal\automatic_updates\Updater

Namespace

Drupal\Tests\automatic_updates\Kernel

Code

public function testInvalidProjectVersions(array $project_versions) : void {
  $this
    ->expectException(\InvalidArgumentException::class);
  $this
    ->expectExceptionMessage('Currently only updates to Drupal core are supported.');
  $this->container
    ->get('automatic_updates.updater')
    ->begin($project_versions);
}