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