protected function SimpleFbConnectPostLoginManagerTest::setUp in Simple FB Connect 8.2
Same name and namespace in other branches
- 8.3 tests/src/Unit/SimpleFbConnectPostLoginManagerTest.php \Drupal\Tests\simple_fb_connect\Unit\SimpleFbConnectPostLoginManagerTest::setUp()
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ SimpleFbConnectPostLoginManagerTest.php, line 28 - Contains Drupal\Tests\simple_fb_connect\Unit\SimpleFbConnectPostLoginManagerTest.
Class
- SimpleFbConnectPostLoginManagerTest
- @coversDefaultClass Drupal\simple_fb_connect\SimpleFbConnectPostLoginManager @group simple_fb_connect
Namespace
Drupal\Tests\simple_fb_connect\UnitCode
protected function setUp() {
parent::setUp();
$this->configFactory = $this
->getConfigFactoryStub(array(
'simple_fb_connect.settings' => array(
'post_login_path' => '<front>',
),
));
$this->requestContext = $this
->getMock('Drupal\\Core\\Routing\\RequestContext');
$this->session = $this
->getMock('Symfony\\Component\\HttpFoundation\\Session\\SessionInterface');
$this->pathValidator = $this
->getMockBuilder('Drupal\\Core\\Path\\PathValidatorInterface')
->disableOriginalConstructor()
->setMethods(array(
'getUrlIfValid',
'toString',
))
->getMockForAbstractClass();
$this->postLoginManager = new SimpleFbConnectPostLoginManager($this->configFactory, $this->session, $this->requestContext, $this->pathValidator);
}