function BlockConditionMissingSchemaUpdateTest::testUpdateHookN

Tests that block context mapping is updated properly.

File

core/modules/block/tests/src/Functional/Update/BlockConditionMissingSchemaUpdateTest.php, line 35

Class

BlockConditionMissingSchemaUpdateTest
Tests the upgrade path for block with conditions missing context.

Namespace

Drupal\Tests\block\Functional\Update

Code

public function testUpdateHookN() {
    $this->runUpdates();
    $this->drupalGet('<front>');
    // If the block is fixed by block_post_update_fix_negate_in_conditions()
    // then it will be visible.
    $this->assertText('Test missing schema on conditions');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.