You are here

PanelizerLayoutIDUpdateTest.php in Panelizer 8.4

Same filename and directory in other branches
  1. 8.5 tests/src/Functional/Update/PanelizerLayoutIDUpdateTest.php

File

tests/src/Functional/Update/PanelizerLayoutIDUpdateTest.php
View source
<?php

namespace Drupal\Tests\panelizer\Functional\Update;

use Drupal\FunctionalTests\Update\UpdatePathTestBase;

/**
 * Tests the updating of Layout IDs.
 *
 * @group panelizer
 */
class PanelizerLayoutIDUpdateTest extends UpdatePathTestBase {

  /**
   * {@inheritdoc}
   */
  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',
    ];
  }

  /**
   * Test updates.
   */
  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);
  }

}

Classes

Namesort descending Description
PanelizerLayoutIDUpdateTest Tests the updating of Layout IDs.