You are here

public function BlockConditionMissingSchemaUpdateTest::testUpdateHookN in Drupal 8

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');
}