You are here

public function ControllerResolverTest::testRawParameterValueResolver in Drupal 8

@group legacy @expectedDeprecation Drupal\Core\Controller\ArgumentResolver\RawParameterValueResolver is deprecated in Drupal 8.8.1 and will be removed before Drupal 9.0.0. This class exists to prevent problems with updating core using Drush 8. There is no replacement.

File

core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php, line 269
Contains \Drupal\Tests\Core\Controller\ControllerResolverTest.

Class

ControllerResolverTest
@coversDefaultClass \Drupal\Core\Controller\ControllerResolver @group Controller

Namespace

Drupal\Tests\Core\Controller

Code

public function testRawParameterValueResolver() {
  $resolver = new RawParameterValueResolver();
  $metadata = $this
    ->prophesize(ArgumentMetadata::class);
  $this
    ->assertFalse($resolver
    ->supports(Request::create('/test'), $metadata
    ->reveal()));
}