function AjaxBasePageNegotiatorTest::testApplies
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Theme/AjaxBasePageNegotiatorTest.php \Drupal\Tests\Core\Theme\AjaxBasePageNegotiatorTest::testApplies()
- 10 core/tests/Drupal/Tests/Core/Theme/AjaxBasePageNegotiatorTest.php \Drupal\Tests\Core\Theme\AjaxBasePageNegotiatorTest::testApplies()
- 11.x core/tests/Drupal/Tests/Core/Theme/AjaxBasePageNegotiatorTest.php \Drupal\Tests\Core\Theme\AjaxBasePageNegotiatorTest::testApplies()
@covers ::applies @dataProvider providerTestApplies
File
-
core/
tests/ Drupal/ Tests/ Core/ Theme/ AjaxBasePageNegotiatorTest.php, line 56
Class
- AjaxBasePageNegotiatorTest
- @coversDefaultClass \Drupal\Core\Theme\AjaxBasePageNegotiator @group Theme
Namespace
Drupal\Tests\Core\ThemeCode
public function testApplies($request_data, $expected) {
$request = new Request([], $request_data);
$route_match = RouteMatch::createFromRequest($request);
$this->requestStack
->push($request);
$result = $this->negotiator
->applies($route_match);
$this->assertSame($expected, $result);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.