public function LTIToolProviderControllerTest::accessDataProvider in LTI Tool Provider 8
Same name and namespace in other branches
- 2.x tests/src/Unit/LTIToolProviderControllerTest.php \Drupal\Tests\lti_tool_provider\Unit\LTIToolProviderControllerTest::accessDataProvider()
Return value
array
File
- tests/
src/ Unit/ LTIToolProviderControllerTest.php, line 107
Class
- LTIToolProviderControllerTest
- LTIToolProviderController unit tests.
Namespace
Drupal\Tests\lti_tool_provider\UnitCode
public function accessDataProvider() : array {
return [
'no context' => [
AccessResult::neutral(),
Request::create('/lti'),
new Session(),
null,
null,
],
'with context' => [
AccessResult::allowed(),
Request::create('/lti'),
new Session(),
[
1,
],
null,
],
];
}