protected function CasAttributesSubscriberTest::setUp in CAS Attributes 2.x
Same name and namespace in other branches
- 8 tests/src/Unit/Subscriber/CasAttributesSubscriberTest.php \Drupal\Tests\cas_attributes\Unit\Subscriber\CasAttributesSubscriberTest::setUp()
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ Subscriber/ CasAttributesSubscriberTest.php, line 67
Class
- CasAttributesSubscriberTest
- CasAttributesSubscriber unit tests.
Namespace
Drupal\Tests\cas_attributes\Unit\SubscriberCode
protected function setUp() {
parent::setUp();
$this->account = $this
->createMock('\\Drupal\\user\\UserInterface');
$this->tokenService = $this
->getMockBuilder('\\Drupal\\Core\\Utility\\Token')
->disableOriginalConstructor()
->getMock();
$this->propertyBag = $this
->getMockBuilder('\\Drupal\\cas\\CasPropertyBag')
->disableOriginalConstructor()
->getMock();
$this->requestStack = $this
->getMockBuilder('\\Symfony\\Component\\HttpFoundation\\RequestStack')
->disableOriginalConstructor()
->getMock();
$this->session = $this
->getMockBuilder('\\Symfony\\Component\\HttpFoundation\\Session\\Session')
->disableOriginalConstructor()
->getMock();
}