You are here

public function EntityBrowserUpdateHookTest::testViewsFieldUpdate in Entity Browser 8

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/EntityBrowserUpdateHookTest.php \Drupal\Tests\entity_browser\Functional\EntityBrowserUpdateHookTest::testViewsFieldUpdate()

Tests entity_browser_update_8002().

File

tests/src/Functional/EntityBrowserUpdateHookTest.php, line 67

Class

EntityBrowserUpdateHookTest
Tests the update hooks in entity_browser module.

Namespace

Drupal\Tests\entity_browser\Functional

Code

public function testViewsFieldUpdate() {
  $this
    ->runUpdates();
  $view = $this->container
    ->get('config.factory')
    ->get('views.view.test_deprecated_field');
  $this
    ->assertEquals('node', $view
    ->get('display.default.display_options.fields.entity_browser_select.table'), 'Data table in "entity_browser_select" replaced with data field.');
}