function ViewsRemoveDefaultArgumentSkipUrlTest::testViewsPostUpdateFixRevisionId
Same name in other branches
- 11.x core/modules/views/tests/src/Functional/Update/ViewsRemoveDefaultArgumentSkipUrlTest.php \Drupal\Tests\views\Functional\Update\ViewsRemoveDefaultArgumentSkipUrlTest::testViewsPostUpdateFixRevisionId()
Tests the upgrade path removing default_argument_skip_url.
File
-
core/
modules/ views/ tests/ src/ Functional/ Update/ ViewsRemoveDefaultArgumentSkipUrlTest.php, line 47
Class
- ViewsRemoveDefaultArgumentSkipUrlTest
- Tests the removal of the default_argument_skip_url setting.
Namespace
Drupal\Tests\views\Functional\UpdateCode
public function testViewsPostUpdateFixRevisionId() : void {
$view = View::load('remove_default_argument_skip_url');
$data = $view->toArray();
$this->assertArrayHasKey('default_argument_skip_url', $data['display']['default']['display_options']['arguments']['tid']);
$this->runUpdates();
$view = View::load('remove_default_argument_skip_url');
$data = $view->toArray();
$this->assertArrayNotHasKey('default_argument_skip_url', $data['display']['default']['display_options']['arguments']['tid']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.