protected function CasRouteEnhancerTest::setUp in CAS 8
Same name and namespace in other branches
- 2.x 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() {
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();
}