public function LTIToolProviderControllerTest::testLtiReturnNoContext in LTI Tool Provider 2.x
Same name and namespace in other branches
- 8 tests/src/Unit/LTIToolProviderControllerTest.php \Drupal\Tests\lti_tool_provider\Unit\LTIToolProviderControllerTest::testLtiReturnNoContext()
@covers ::ltiReturn @covers ::__construct
File
- tests/
src/ Unit/ LTIToolProviderControllerTest.php, line 175
Class
- LTIToolProviderControllerTest
- LTIToolProviderController unit tests.
Namespace
Drupal\Tests\lti_tool_provider\UnitCode
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();
}