protected function LTIToolProviderControllerTest::setUp 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::setUp()
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ LTIToolProviderControllerTest.php, line 257
Class
- LTIToolProviderControllerTest
- LTIToolProviderController unit tests.
Namespace
Drupal\Tests\lti_tool_provider\UnitCode
protected function setUp() : void {
parent::setUp();
$this->configFactory = $this
->createMock('\\Drupal\\Core\\Config\\ConfigFactoryInterface');
$this->eventDispatcher = $this
->getMockBuilder('\\Symfony\\Component\\EventDispatcher\\EventDispatcher')
->onlyMethods([
'__construct',
])
->disableOriginalConstructor()
->getMock();
$this->killSwitch = $this
->getMockBuilder('\\Drupal\\Core\\PageCache\\ResponsePolicy\\KillSwitch')
->addMethods([
'__construct',
])
->disableOriginalConstructor()
->getMock();
$this->loggerFactory = $this
->getMockBuilder('\\Drupal\\Core\\Logger\\LoggerChannelFactory')
->addMethods([
'__construct',
])
->disableOriginalConstructor()
->getMock();
}