comparison core/tests/Drupal/Tests/Core/DrupalTest.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 129ea1e6d783
children
comparison
equal deleted inserted replaced
17:129ea1e6d783 18:af1871eacc83
356 /** 356 /**
357 * Tests the url() method. 357 * Tests the url() method.
358 * 358 *
359 * @covers ::url 359 * @covers ::url
360 * @see \Drupal\Core\Routing\UrlGeneratorInterface::generateFromRoute() 360 * @see \Drupal\Core\Routing\UrlGeneratorInterface::generateFromRoute()
361 *
362 * @group legacy
363 * @expectedDeprecation Drupal::url() is deprecated as of Drupal 8.0.x, will be removed before Drupal 9.0.0. Instead create a \Drupal\Core\Url object directly, for example using Url::fromRoute()
361 */ 364 */
362 public function testUrl() { 365 public function testUrl() {
363 $route_parameters = ['test_parameter' => 'test']; 366 $route_parameters = ['test_parameter' => 'test'];
364 $options = ['test_option' => 'test']; 367 $options = ['test_option' => 'test'];
365 $generator = $this->getMock('Drupal\Core\Routing\UrlGeneratorInterface'); 368 $generator = $this->getMock('Drupal\Core\Routing\UrlGeneratorInterface');