function LegacyServiceTest::testLaminasFeedServices
Tests the deprecated Laminas Feed services.
@dataProvider providerLaminasFeedServices
File
-
core/
tests/ Drupal/ KernelTests/ Core/ LegacyServiceTest.php, line 38
Class
- LegacyServiceTest
- Tests deprecated core services.
Namespace
Drupal\KernelTests\CoreCode
public function testLaminasFeedServices($type, $service, $class) {
$service = "feed.{$type}.{$service}";
$this->expectDeprecation("The \"{$service}\" service is deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. You should use \\Drupal::service('feed.bridge.{$type}')->get('{$class}') instead. See https://www.drupal.org/node/2979042");
$this->assertIsObject($this->container
->get($service));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.