protected function CasRouteEnhancerTest::setUp in CAS 2.x
Same name and namespace in other branches
- 8 tests/src/Unit/Routing/CasRouteEnhancerTest.php \Drupal\Tests\cas\Unit\Routing\CasRouteEnhancerTest::setUp()
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ Routing/ CasRouteEnhancerTest.php, line 42
Class
- CasRouteEnhancerTest
- CasRouteEnhancer unit tests.
Namespace
Drupal\Tests\cas\Unit\RoutingCode
protected function setUp() : void {
parent::setUp();
$this->casHelper = $this
->getMockBuilder('\\Drupal\\cas\\Service\\CasHelper')
->disableOriginalConstructor()
->getMock();
$this->request = $this
->getMockBuilder('\\Symfony\\Component\\HttpFoundation\\Request')
->disableOriginalConstructor()
->getMock();
$this->route = $this
->getMockBuilder('\\Symfony\\Component\\Routing\\Route')
->disableOriginalConstructor()
->getMock();
}