public function SimpleFbConnectPostLoginManagerTest::testGetPostLoginPathFromRequest 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::testGetPostLoginPathFromRequest()
Tests getPostLoginPathFromRequest when value is set.
@covers ::getPostLoginPathFromRequest
@dataProvider getPostLoginPathFromRequestDataProvider
File
- tests/
src/ Unit/ SimpleFbConnectPostLoginManagerTest.php, line 63 - 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
public function testGetPostLoginPathFromRequest($input, $expected) {
$this->requestContext
->expects($this
->once())
->method('getQueryString')
->willReturn($input);
$this
->assertSame($expected, $this->postLoginManager
->getPostLoginPathFromRequest());
}