function ViewsConfigUpdaterTest::testNeedsOperatorDefaultsUpdateDeprecation

@covers ::needsOperatorDefaultsUpdate

File

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

Class

ViewsConfigUpdaterTest
@coversDefaultClass \Drupal\views\ViewsConfigUpdater

Namespace

Drupal\Tests\views\Kernel

Code

public function testNeedsOperatorDefaultsUpdateDeprecation() {
    $this->expectDeprecation('The operator defaults update for the "test_exposed_filters" view is deprecated in drupal:9.0.0 and is removed from drupal:10.0.0. Module-provided Views configuration should be updated to accommodate the changes described at https://www.drupal.org/node/2869168.');
    $test_view = $this->loadTestView('views.view.test_exposed_filters');
    $needs_update = $this->configUpdater
        ->needsOperatorDefaultsUpdate($test_view);
    $this->assertTrue($needs_update);
}

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