You are here

function MatcherDumperTest::testCreate in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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\Routing

Code

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');
}