BlockConditionMissingSchemaUpdateTest.php in Drupal 8
File
core/modules/block/tests/src/Functional/Update/BlockConditionMissingSchemaUpdateTest.php
View source
<?php
namespace Drupal\Tests\block\Functional\Update;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
class BlockConditionMissingSchemaUpdateTest extends UpdatePathTestBase {
protected static $modules = [
'block_test',
'language',
];
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz',
__DIR__ . '/../../../fixtures/update/drupal-8.block-test-enabled-missing-schema.php',
];
}
public function testUpdateHookN() {
$this
->runUpdates();
$this
->drupalGet('<front>');
$this
->assertText('Test missing schema on conditions');
}
}