function LegacyMatcherDumperTest::testConstructorDeprecationWithLogger

Same name and namespace in other branches
  1. 10 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 64

Class

LegacyMatcherDumperTest
Tests deprecations in MatcherDumper.

Namespace

Drupal\KernelTests\Core\Routing

Code

public function testConstructorDeprecationWithLogger() {
    $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.