public function ServicesTest::testPackageManagerServices in Automatic Updates 8.2
Tests that Package Manager's public services can be instantiated.
File
- package_manager/
tests/ src/ Kernel/ ServicesTest.php, line 22
Class
- ServicesTest
- Tests that Package Manager services are wired correctly.
Namespace
Drupal\Tests\package_manager\KernelCode
public function testPackageManagerServices() : void {
$services = [
'package_manager.beginner',
'package_manager.stager',
'package_manager.committer',
'package_manager.cleaner',
];
foreach ($services as $service) {
$this
->assertIsObject($this->container
->get($service));
}
}