You are here

public function CasValidatorTest::setUp in CAS 8

Same name and namespace in other branches
  1. 2.x tests/src/Unit/Service/CasValidatorTest.php \Drupal\Tests\cas\Unit\Service\CasValidatorTest::setUp()

Overrides UnitTestCase::setUp

File

tests/src/Unit/Service/CasValidatorTest.php, line 45

Class

CasValidatorTest
CasValidator unit tests.

Namespace

Drupal\Tests\cas\Unit\Service

Code

public function setUp() {
  parent::setUp();

  // Mock event dispatcher to dispatch events.
  $this->eventDispatcher = $this
    ->getMockBuilder('\\Symfony\\Component\\EventDispatcher\\EventDispatcherInterface')
    ->disableOriginalConstructor()
    ->getMock();
}