SevenSecondaryLocalTasksConvertedIntoBlockUpdateTest.php in Drupal 8
File
core/modules/system/tests/src/Functional/Update/SevenSecondaryLocalTasksConvertedIntoBlockUpdateTest.php
View source
<?php
namespace Drupal\Tests\system\Functional\Update;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
class SevenSecondaryLocalTasksConvertedIntoBlockUpdateTest extends UpdatePathTestBase {
protected $defaultTheme = 'stark';
public function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz',
__DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.seven-secondary-local-tasks-block-2569529.php',
];
}
protected function setUp() {
parent::setUp();
$theme_handler = \Drupal::service('theme_handler');
$theme_handler
->refreshInfo();
}
public function testUpdateHookN() {
$this
->runUpdates();
$block_storage = \Drupal::entityTypeManager()
->getStorage('block');
\Drupal::state()
->set('system.maintenance_mode', FALSE);
$this
->drupalLogin($this->rootUser);
$this
->drupalGet('admin/structure/block');
$action_link = $this
->cssSelect('#secondary-tabs-title');
$this
->assertNotEmpty($action_link);
}
}