You are here

public function LTIToolProviderTest::testApplies in LTI Tool Provider 2.x

Same name and namespace in other branches
  1. 8 tests/src/Unit/LTIToolProviderTest.php \Drupal\Tests\lti_tool_provider\Unit\LTIToolProviderTest::testApplies()

Test the applies() method.

@dataProvider appliesProvider @covers ::applies @covers ::__construct

Parameters

$expected:

$request:

File

tests/src/Unit/LTIToolProviderTest.php, line 81

Class

LTIToolProviderTest
LTIToolProvider unit tests.

Namespace

Drupal\Tests\lti_tool_provider\Unit

Code

public function testApplies($expected, $request) {
  $provider = new LTIToolProvider($this->configFactory, $this->entityTypeManager, $this->loggerFactory, $this->eventDispatcher);
  $actual = $provider
    ->applies($request);
  $this
    ->assertEquals($expected, $actual);
}