3 namespace Drupal\Tests\block\Functional\Update;
5 use Drupal\FunctionalTests\Update\UpdatePathTestBase;
8 * Tests the upgrade path for block with conditions missing context.
10 * @see https://www.drupal.org/node/2811519
14 class BlockConditionMissingSchemaUpdateTest extends UpdatePathTestBase {
17 * This test does not have a failed update but the configuration has missing
18 * schema so can not do the full post update testing offered by
23 * @see \Drupal\system\Tests\Update\UpdatePathTestBase::runUpdates()
25 protected $checkFailedUpdates = FALSE;
30 protected static $modules = ['block_test', 'language'];
35 protected function setDatabaseDumpFiles() {
36 $this->databaseDumpFiles = [
37 __DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz',
38 __DIR__ . '/../../../fixtures/update/drupal-8.block-test-enabled-missing-schema.php',
43 * Tests that block context mapping is updated properly.
45 public function testUpdateHookN() {
47 $this->drupalGet('<front>');
48 // If the block is fixed by block_post_update_fix_negate_in_conditions()
49 // then it will be visible.
50 $this->assertText('Test missing schema on conditions');