You are here

public function PageSpecificTest::doTestRoutes in Page Specific Class 2.0.x

Check routes defined by page_specific_class.

1 call to PageSpecificTest::doTestRoutes()
PageSpecificTest::testFunctional in test/src/Functional/PageSpecificTest.php

File

test/src/Functional/PageSpecificTest.php, line 60

Class

PageSpecificTest
Ensure that the page_specific_class forms work properly.

Namespace

Drupal\Tests\page_specific_class\Functional

Code

public function doTestRoutes() {
  $assertion = $this
    ->assertSession();

  // Check configuration route accessible or not.
  $path = Url::fromRoute("page_specific_class.settings");
  $this
    ->drupalGet($path);
  $assertion
    ->statusCodeEquals(200);
}