public function LegacyMessengerTest::test_construct in Service Container 8
Same name and namespace in other branches
- 7.2 tests/src/Messenger/LegacyMessengerTest.php \Drupal\Tests\service_container\Messenger\LegacyMessengerTest::test_construct()
- 7 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\MessengerCode
public function test_construct() {
$this
->assertInstanceOf('\\Drupal\\service_container\\Messenger\\MessengerInterface', $this->messenger_service);
$this
->assertInstanceOf('\\Drupal\\service_container\\Legacy\\Drupal7', $this->drupal7);
}