public function MatcherDumperTest::testCreate in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/Routing/MatcherDumperTest.php \Drupal\KernelTests\Core\Routing\MatcherDumperTest::testCreate()
- 10 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\RoutingCode
public function testCreate() {
$connection = Database::getConnection();
$dumper = new MatcherDumper($connection, $this->state);
$class_name = 'Drupal\\Core\\Routing\\MatcherDumper';
$this
->assertInstanceOf($class_name, $dumper);
}