function ViewsConfigUpdaterTest::testNeedsFieldNamesForMultivalueBaseFieldsUpdate

Same name and namespace in other branches
  1. 8.9.x core/modules/views/tests/src/Kernel/ViewsConfigUpdaterTest.php \Drupal\Tests\views\Kernel\ViewsConfigUpdaterTest::testNeedsFieldNamesForMultivalueBaseFieldsUpdate()

@covers ::needsMultivalueBaseFieldUpdate

File

core/modules/views/tests/src/Kernel/ViewsConfigUpdaterTest.php, line 133

Class

ViewsConfigUpdaterTest
@coversDefaultClass <a href="/api/drupal/core%21modules%21views%21src%21ViewsConfigUpdater.php/class/ViewsConfigUpdater/9" title="Provides a BC layer for modules providing old configurations." class="local">\Drupal\views\ViewsConfigUpdater</a>

Namespace

Drupal\Tests\views\Kernel

Code

public function testNeedsFieldNamesForMultivalueBaseFieldsUpdate() {
    $test_view = $this->loadTestView('views.view.test_user_multi_value');
    $this->configUpdater
        ->setDeprecationsEnabled(FALSE);
    $needs_update = $this->configUpdater
        ->needsMultivalueBaseFieldUpdate($test_view);
    $this->assertTrue($needs_update);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.