You are here

public function PluginTypeConverterTest::testApplies in Plugin 8.2

@covers ::applies @covers ::validateParameterDefinition @covers ::getConverterDefinitionConstraint @covers ::getConverterDefinition @covers ::getConverterDefinitionKey @covers ::__construct

@dataProvider provideApplies

File

tests/src/Unit/ParamConverter/PluginTypeConverterTest.php, line 53

Class

PluginTypeConverterTest
@coversDefaultClass \Drupal\plugin\ParamConverter\PluginTypeConverter

Namespace

Drupal\Tests\plugin\Unit\ParamConverter

Code

public function testApplies($expected, $definition) {
  $name = 'foo_bar';
  $route = $this
    ->prophesize(Route::class);
  $this
    ->assertSame($expected, $this->sut
    ->applies($definition, $name, $route
    ->reveal()));
}