You are here

public function CoreUpdateTest::testCron in Automatic Updates 8.2

Tests an end-to-end core update via cron.

@dataProvider providerTemplate

Parameters

string $template: The template project from which to build the test site.

File

tests/src/Build/CoreUpdateTest.php, line 214

Class

CoreUpdateTest
Tests an end-to-end update of Drupal core.

Namespace

Drupal\Tests\automatic_updates\Build

Code

public function testCron(string $template) : void {
  $this
    ->createTestSite($template);
  $this
    ->visit('/admin/reports/status');
  $this
    ->getMink()
    ->getSession()
    ->getPage()
    ->clickLink('Run cron');
  $this
    ->assertUpdateSuccessful();
}