function MatcherDumperTest::testCreate in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/system/src/Tests/Routing/MatcherDumperTest.php \Drupal\system\Tests\Routing\MatcherDumperTest::testCreate()
Confirms that the dumper can be instantiated successfully.
File
- core/
modules/ system/ src/ Tests/ Routing/ MatcherDumperTest.php, line 50 - Contains \Drupal\system\Tests\Routing\MatcherDumperTest.
Class
- MatcherDumperTest
- Confirm that the matcher dumper is functioning properly.
Namespace
Drupal\system\Tests\RoutingCode
function testCreate() {
$connection = Database::getConnection();
$dumper = new MatcherDumper($connection, $this->state);
$class_name = 'Drupal\\Core\\Routing\\MatcherDumper';
$this
->assertTrue($dumper instanceof $class_name, 'Dumper created successfully');
}