public function ViewsConfigUpdaterTest::testNeedsEntityLinkUrlUpdateDeprecation in Drupal 9
@covers ::needsEntityLinkUrlUpdate
File
- core/
modules/ views/ tests/ src/ Kernel/ ViewsConfigUpdaterTest.php, line 75
Class
- ViewsConfigUpdaterTest
- @coversDefaultClass \Drupal\views\ViewsConfigUpdater
Namespace
Drupal\Tests\views\KernelCode
public function testNeedsEntityLinkUrlUpdateDeprecation() {
$this
->expectDeprecation('The entity link url update for the "node_link_update_test" 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/2857891.');
$test_view = $this
->loadTestView('views.view.node_link_update_test');
$needs_update = $this->configUpdater
->needsEntityLinkUrlUpdate($test_view);
$this
->assertTrue($needs_update);
}