function EntityLinkOutputUrlUpdateTest::testViewsPostUpdateEntityLinkUrl
Tests that the additional settings are added to the config.
@covers ::needsEntityLinkUrlUpdate
File
-
core/
modules/ views/ tests/ src/ Functional/ Update/ EntityLinkOutputUrlUpdateTest.php, line 34
Class
- EntityLinkOutputUrlUpdateTest
- Tests that the additional settings are added to the entity link field.
Namespace
Drupal\Tests\views\Functional\UpdateCode
public function testViewsPostUpdateEntityLinkUrl() {
$this->runUpdates();
// Load and initialize our test view.
$view = View::load('node_link_update_test');
$data = $view->toArray();
// Check that the field contains the new values.
$this->assertIdentical(FALSE, $data['display']['default']['display_options']['fields']['view_node']['output_url_as_text']);
$this->assertIdentical(FALSE, $data['display']['default']['display_options']['fields']['view_node']['absolute']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.