Skip to content
Snippets Groups Projects
Commit 68edb410 authored by catch's avatar catch
Browse files

Issue #2070791 by tstoeckler: Remove unnecessary request context futzing in...

Issue #2070791 by tstoeckler: Remove unnecessary request context futzing in \Drupal\system\Tests\Routing\RouterTest::testUrlGeneratorFront().
parent 43ba1e0a
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -147,14 +147,6 @@ public function testControllerResolutionPage() {
* Checks the generate method on the url generator using the front router.
*/
public function testUrlGeneratorFront() {
// Setup the request context of the URL generator. Note: Just calling the
// code without a proper request, does not setup the request context
// automatically.
$context = new RequestContext();
$context->fromRequest($this->container->get('request'));
$this->container->get('url_generator')->setRequest($this->container->get('request'));
$this->container->get('url_generator')->setContext($context);
global $base_path;
$this->assertEqual($this->container->get('url_generator')->generate('<front>'), $base_path);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment