You are here

public function ContainerAwarePluginManagerTest::test_getDefinition in Service Container 7.2

Same name and namespace in other branches
  1. 7 tests/src/Plugin/ContainerAwarePluginManagerTest.php \Drupal\Tests\service_container\Plugin\ContainerAwarePluginManagerTest::test_getDefinition()

@covers ::__construct() @covers ::getDefinition()

File

tests/src/Plugin/ContainerAwarePluginManagerTest.php, line 35
Contains \Drupal\Tests\service_container\Plugin\ContainerAwarePluginManagerTest

Class

ContainerAwarePluginManagerTest
@coversDefaultClass \Drupal\service_container\Plugin\ContainerAwarePluginManager @group dic

Namespace

Drupal\Tests\service_container\Plugin

Code

public function test_getDefinition() {
  $this
    ->assertEquals($this->containerDefinition['services']['service_container.controller.internal.block'], $this->controllerPluginManager
    ->getDefinition('block'), 'service_container.controller.internal.block definition matches.');
}