You are here

public function LoggerChannelTest::test_construct in Service Container 7

Same name and namespace in other branches
  1. 7.2 tests/src/Logger/LoggerChannelTest.php \Drupal\Tests\service_container\Logger\LoggerChannelTest::test_construct()

@covers ::__construct()

File

tests/src/Logger/LoggerChannelTest.php, line 37
Contains \Drupal\Tests\service_container\Logger\LoggerChannelTest.

Class

LoggerChannelTest
@coversDefaultClass \Drupal\service_container\Logger\LoggerChannel

Namespace

Drupal\Tests\service_container\Logger

Code

public function test_construct() {
  $this
    ->assertInstanceOf('\\Drupal\\service_container\\Logger\\LoggerChannel', $this->loggerChannel);
  $this
    ->assertAttributeEquals('test', 'channel', $this->loggerChannel);
}