You are here

public function BlazyManagerUnitTest::testBlazyManagerServiceInstances in Blazy 8

Same name and namespace in other branches
  1. 8.2 tests/src/Unit/BlazyManagerUnitTest.php \Drupal\Tests\blazy\Unit\BlazyManagerUnitTest::testBlazyManagerServiceInstances()

Tests cases for various methods.

@covers ::getEntityTypeManager @covers ::getModuleHandler @covers ::getRenderer @covers ::getCache @covers ::getConfigFactory

File

tests/src/Unit/BlazyManagerUnitTest.php, line 40

Class

BlazyManagerUnitTest
@coversDefaultClass \Drupal\blazy\BlazyManager

Namespace

Drupal\Tests\blazy\Unit

Code

public function testBlazyManagerServiceInstances() {
  $this
    ->assertInstanceOf('\\Drupal\\Core\\Entity\\EntityTypeManagerInterface', $this->blazyManager
    ->getEntityTypeManager());
  $this
    ->assertInstanceOf('\\Drupal\\Core\\Extension\\ModuleHandlerInterface', $this->blazyManager
    ->getModuleHandler());
  $this
    ->assertInstanceOf('\\Drupal\\Core\\Render\\RendererInterface', $this->blazyManager
    ->getRenderer());
  $this
    ->assertInstanceOf('\\Drupal\\Core\\Config\\ConfigFactoryInterface', $this->blazyManager
    ->getConfigFactory());
  $this
    ->assertInstanceOf('\\Drupal\\Core\\Cache\\CacheBackendInterface', $this->blazyManager
    ->getCache());
}