public function ExposedFilterBlocksUpdateTest::testViewsPostUpdateExposedFilterBlocksWithoutBlock in Drupal 8
Tests that the update succeeds even if Block is not installed.
File
- core/
modules/ views/ tests/ src/ Functional/ Update/ ExposedFilterBlocksUpdateTest.php, line 42
Class
- ExposedFilterBlocksUpdateTest
- Tests that the additional settings are added to the entity link field.
Namespace
Drupal\Tests\views\Functional\UpdateCode
public function testViewsPostUpdateExposedFilterBlocksWithoutBlock() {
// This block is created during the update process, but since we are
// uninstalling the Block module for this test, it will fail config schema
// validation. Since that's okay for the purposes of this test, just make
// the config schema checker ignore the block.
static::$configSchemaCheckerExclusions[] = 'block.block.seven_secondary_local_tasks';
// We need to uninstall the menu_link_content module because
// menu_link_content_entity_predelete() invokes alias processing and we
// don't have a working path alias system until system_update_8803() runs.
// Note that path alias processing is disabled during the regular database
// update process, so this only happens because we uninstall the Block
// module before running the updates.
// @see \Drupal\Core\Update\UpdateServiceProvider::alter()
$this->container
->get('module_installer')
->uninstall([
'menu_link_content',
'block',
]);
$this
->runUpdates();
}