route = new Route('user/{user}/edit'); $this->wrapper = new RouteWrapper('user.edit', $this->route, $this->getMock('\Drupal\Core\Routing\RouteProviderInterface')); } public function testGetIdentifier() { $this->assertEquals('user.edit', $this->wrapper->getIdentifier()); } public function testGetPath() { $this->assertInstanceOf('\Drupal\drupalmoduleupgrader\Utility\Path\Drupal8\PathUtility', $this->wrapper->getPath()); $this->assertEquals('/user/{user}/edit', $this->wrapper->getPath()); } }