You are here

public function LegacyMessengerTest::test_construct in Service Container 7

Same name and namespace in other branches
  1. 8 tests/src/Messenger/LegacyMessengerTest.php \Drupal\Tests\service_container\Messenger\LegacyMessengerTest::test_construct()
  2. 7.2 tests/src/Messenger/LegacyMessengerTest.php \Drupal\Tests\service_container\Messenger\LegacyMessengerTest::test_construct()

@covers ::__construct()

File

tests/src/Messenger/LegacyMessengerTest.php, line 44
Contains \Drupal\Tests\service_container\Messenger\LegacyMessengerTest.

Class

LegacyMessengerTest
@coversDefaultClass \Drupal\service_container\Messenger\LegacyMessenger

Namespace

Drupal\Tests\service_container\Messenger

Code

public function test_construct() {
  $this
    ->assertInstanceOf('\\Drupal\\service_container\\Messenger\\MessengerInterface', $this->messenger_service);
  $this
    ->assertInstanceOf('\\Drupal\\service_container\\Legacy\\Drupal7', $this->drupal7);
}