You are here

public function MatcherDumperTest::testCreate in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/Core/Routing/MatcherDumperTest.php \Drupal\KernelTests\Core\Routing\MatcherDumperTest::testCreate()
  2. 9 core/tests/Drupal/KernelTests/Core/Routing/MatcherDumperTest.php \Drupal\KernelTests\Core\Routing\MatcherDumperTest::testCreate()

Confirms that the dumper can be instantiated successfully.

File

core/tests/Drupal/KernelTests/Core/Routing/MatcherDumperTest.php, line 46

Class

MatcherDumperTest
Confirm that the matcher dumper is functioning properly.

Namespace

Drupal\KernelTests\Core\Routing

Code

public function testCreate() {
  $connection = Database::getConnection();
  $dumper = new MatcherDumper($connection, $this->state);
  $class_name = 'Drupal\\Core\\Routing\\MatcherDumper';
  $this
    ->assertInstanceOf($class_name, $dumper);
}