function LegacyMatcherDumperTest::testConstructorDeprecationWithLogger

Same name in other branches
  1. 11.x core/tests/Drupal/KernelTests/Core/Routing/LegacyMatcherDumperTest.php \Drupal\KernelTests\Core\Routing\LegacyMatcherDumperTest::testConstructorDeprecationWithLogger()

Tests the constructor deprecations.

File

core/tests/Drupal/KernelTests/Core/Routing/LegacyMatcherDumperTest.php, line 66

Class

LegacyMatcherDumperTest
Tests deprecations in MatcherDumper.

Namespace

Drupal\KernelTests\Core\Routing

Code

public function testConstructorDeprecationWithLogger() : void {
    $logger = $this->createMock(LoggerInterface::class);
    $dumper = new MatcherDumper($this->connection, $this->state, $logger);
    $this->assertNotNull($dumper);
    $logger = $this->createMock(LoggerInterface::class);
    $dumper = new MatcherDumper($this->connection, $this->state, $logger, 'foo');
    $this->assertNotNull($dumper);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.