You are here

public function LTIToolProviderControllerTest::testLtiReturnNoContext in LTI Tool Provider 8

Same name and namespace in other branches
  1. 2.x tests/src/Unit/LTIToolProviderControllerTest.php \Drupal\Tests\lti_tool_provider\Unit\LTIToolProviderControllerTest::testLtiReturnNoContext()

@covers ::ltiReturn @covers ::__construct

File

tests/src/Unit/LTIToolProviderControllerTest.php, line 191

Class

LTIToolProviderControllerTest
LTIToolProviderController unit tests.

Namespace

Drupal\Tests\lti_tool_provider\Unit

Code

public function testLtiReturnNoContext() {
  $controller = new LTIToolProviderController($this->configFactory, $this->loggerFactory, $this->eventDispatcher, $this->killSwitch, new Request(), new Session(), null, '/');
  $this
    ->expectException(InvalidArgumentException::class);
  $controller
    ->ltiReturn();
}