protected function SimpleFbConnectFbFactoryTest::finalizeSetup in Simple FB Connect 8.3
Creates mocks with desired configFactory parameters.
2 calls to SimpleFbConnectFbFactoryTest::finalizeSetup()
- SimpleFbConnectFbFactoryTest::testGetFbServiceWithBadData in tests/
src/ Unit/ SimpleFbConnectFbFactoryTest.php - Tests getFbService with bad data.
- SimpleFbConnectFbFactoryTest::testGetFbServiceWithGoodData in tests/
src/ Unit/ SimpleFbConnectFbFactoryTest.php - Tests getFbService when app ID and app Secrete have been set.
File
- tests/
src/ Unit/ SimpleFbConnectFbFactoryTest.php, line 35
Class
- SimpleFbConnectFbFactoryTest
- @coversDefaultClass Drupal\simple_fb_connect\SimpleFbConnectFbFactory @group simple_fb_connect
Namespace
Drupal\Tests\simple_fb_connect\UnitCode
protected function finalizeSetup($app_id, $app_secret) {
$this->configFactory = $this
->getConfigFactoryStub([
'simple_fb_connect.settings' => [
'app_id' => $app_id,
'app_secret' => $app_secret,
],
]);
$this->fbFactory = new SimpleFbConnectFbFactory($this->configFactory, $this->loggerFactory, $this->persistentDataHandler);
}