You are here

public function RouteAttributesTest::testExtractRawAttributes in Page Manager 8

Same name and namespace in other branches
  1. 8.4 tests/src/Unit/RouteAttributesTest.php \Drupal\Tests\page_manager\Unit\RouteAttributesTest::testExtractRawAttributes()

@covers ::extractRawAttributes

@dataProvider providerTestExtractRawAttributes

File

tests/src/Unit/RouteAttributesTest.php, line 25
Contains \Drupal\Tests\page_manager\Unit\RouteAttributesTest.

Class

RouteAttributesTest
@coversDefaultClass \Drupal\page_manager\Routing\RouteAttributes @group PageManager

Namespace

Drupal\Tests\page_manager\Unit

Code

public function testExtractRawAttributes(Route $route, $name, $path, array $expected) {
  $expected['_route_object'] = $route;
  $expected['_route'] = $name;
  $this
    ->assertEquals($expected, RouteAttributes::extractRawAttributes($route, $name, $path));
}