public function ViewsConfigUpdaterTest::testNeedsFieldNamesForMultivalueBaseUpdateFieldsDeprecation in Drupal 9
@covers ::needsMultivalueBaseFieldUpdate
File
- core/
modules/ views/ tests/ src/ Kernel/ ViewsConfigUpdaterTest.php, line 115
Class
- ViewsConfigUpdaterTest
- @coversDefaultClass \Drupal\views\ViewsConfigUpdater
Namespace
Drupal\Tests\views\KernelCode
public function testNeedsFieldNamesForMultivalueBaseUpdateFieldsDeprecation() {
$this
->expectDeprecation('The multivalue base field update for the "test_user_multi_value" 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/2900684.');
$test_view = $this
->loadTestView('views.view.test_user_multi_value');
$needs_update = $this->configUpdater
->needsMultivalueBaseFieldUpdate($test_view);
$this
->assertTrue($needs_update);
}