You are here

protected function LTIToolProviderControllerTest::setUp 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::setUp()

Overrides UnitTestCase::setUp

File

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

Class

LTIToolProviderControllerTest
LTIToolProviderController unit tests.

Namespace

Drupal\Tests\lti_tool_provider\Unit

Code

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