public function CoreUpdateTest::testApi in Automatic Updates 8.2
Tests an end-to-end core update via the API.
@dataProvider providerTemplate
Parameters
string $template: The template project from which to build the test site.
File
- tests/
src/ Build/ CoreUpdateTest.php, line 156
Class
- CoreUpdateTest
- Tests an end-to-end update of Drupal core.
Namespace
Drupal\Tests\automatic_updates\BuildCode
public function testApi(string $template) : void {
$this
->createTestSite($template);
$mink = $this
->getMink();
$assert_session = $mink
->assertSession();
// Ensure that the update is prevented if the web root and/or vendor
// directories are not writable.
$this
->assertReadOnlyFileSystemError($template, '/automatic-update-test/update/9.8.1');
$mink
->getSession()
->reload();
$assert_session
->pageTextContains('9.8.1');
}