public function ProductBundleStockKernelTest::testServiceIsRegistered in Commerce Product Bundle 8
Wether the service gets collected by the StockServiceManager.
@requires module commerce_stock
File
- modules/
commerce_product_bundle_stock/ tests/ src/ Kernel/ ProductBundleStockKernelTest.php, line 19
Class
- ProductBundleStockKernelTest
- Tests the product bundle stock service manager.
Namespace
Drupal\Tests\commerce_product_bundle_stock\KernelCode
public function testServiceIsRegistered() {
/** @var \Drupal\commerce_stock\StockServiceManagerInterface $serviceManager */
$serviceManager = \Drupal::service('commerce_stock.service_manager');
self::assertContains('commerce_product_bundle_stock', array_keys($serviceManager
->listServiceIds()));
}