service_provider_test_class

Same name in other branches
  1. 9 core/modules/system/tests/modules/service_provider_test/service_provider_test.services.yml \service_provider_test_class
  2. 10 core/modules/system/tests/modules/service_provider_test/service_provider_test.services.yml \service_provider_test_class
  3. 11.x core/modules/system/tests/modules/service_provider_test/service_provider_test.services.yml \service_provider_test_class

Class

Drupal\service_provider_test\TestClass

Tags

  • event_subscriber
  • needs_destruction
5 string references to service_provider_test_class
DrupalKernelTest::testCompileDIC in core/tests/Drupal/KernelTests/Core/DrupalKernel/DrupalKernelTest.php
Tests DIC compilation.
ServiceDestructionTest::testDestructionUsed in core/tests/Drupal/KernelTests/Core/DrupalKernel/ServiceDestructionTest.php
Verifies that services are destructed when used.
ServiceProviderTest::testServiceProviderRegistration in core/tests/Drupal/KernelTests/Core/ServiceProvider/ServiceProviderTest.php
Tests that services provided by module service providers get registered to the DIC.
ServiceProviderTest::testServiceProviderRegistrationDynamic in core/tests/Drupal/KernelTests/Core/ServiceProvider/ServiceProviderTest.php
Tests that the DIC keeps up with module enable/disable in the same request.
ServiceProviderWebTest::testServiceProviderRegistrationIntegration in core/modules/system/tests/src/Functional/ServiceProvider/ServiceProviderWebTest.php
Tests that module service providers get registered to the DIC.

File

core/modules/system/tests/modules/service_provider_test/service_provider_test.services.yml

View source
  1. class: Drupal\service_provider_test\TestClass
  2. tags:
  3. - { name: event_subscriber }
  4. - { name: needs_destruction }
  5. parent: container.trait
  6. arguments:
  7. - '@state'

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.