PanelizerLayoutIDUpdateTest.php in Panelizer 8.4
File
tests/src/Functional/Update/PanelizerLayoutIDUpdateTest.php
View source
<?php
namespace Drupal\Tests\panelizer\Functional\Update;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
class PanelizerLayoutIDUpdateTest extends UpdatePathTestBase {
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
$this
->getDrupalRoot() . '/core/modules/system/tests/fixtures/update/drupal-8.8.0.bare.standard.php.gz',
__DIR__ . '/../../../fixtures/update/drupal-8.8.panelizer.minimal.php.gz',
];
}
public function testUpdate() {
$this
->runUpdates();
$this
->drupalLogin($this->rootUser);
$this
->drupalGet('admin/structure/types/manage/article/display');
$this
->clickLink('Edit', 1);
$this
->assertResponse(200);
$this
->drupalGet('node/1');
$this
->assertResponse(200);
$this
->drupalGet('node/2');
$this
->assertResponse(200);
}
}