You are here

public function LTIToolProviderTest::testApplies in LTI Tool Provider 8

Same name and namespace in other branches
  1. 2.x 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 110

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);
}