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
15 class BlockConditionMissingSchemaUpdateTest extends UpdatePathTestBase {
18 * This test does not have a failed update but the configuration has missing
19 * schema so can not do the full post update testing offered by
24 * @see \Drupal\system\Tests\Update\UpdatePathTestBase::runUpdates()
26 protected $checkFailedUpdates = FALSE;
31 protected static $modules = ['block_test', 'language'];
36 protected function setDatabaseDumpFiles() {
37 $this->databaseDumpFiles = [
38 __DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz',
39 __DIR__ . '/../../../fixtures/update/drupal-8.block-test-enabled-missing-schema.php',
44 * Tests that block context mapping is updated properly.
46 public function testUpdateHookN() {
48 $this->drupalGet('<front>');
49 // If the block is fixed by block_post_update_fix_negate_in_conditions()
50 // then it will be visible.
51 $this->assertText('Test missing schema on conditions');