EntityLinkOutputUrlUpdateTest.php in Drupal 8
File
core/modules/views/tests/src/Functional/Update/EntityLinkOutputUrlUpdateTest.php
View source
<?php
namespace Drupal\Tests\views\Functional\Update;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
use Drupal\views\Entity\View;
class EntityLinkOutputUrlUpdateTest extends UpdatePathTestBase {
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz',
__DIR__ . '/../../../fixtures/update/entity-link-output-url.php',
];
}
public function testViewsPostUpdateEntityLinkUrl() {
$this
->runUpdates();
$view = View::load('node_link_update_test');
$data = $view
->toArray();
$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']);
}
}