Commit 68edb410 authored by catch's avatar catch

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
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment