public function SimpleFbConnectFbFactoryTest::testGetFbServiceWithBadData in Simple FB Connect 8.3
Tests getFbService with bad data.
@covers ::getFbService @covers ::validateConfig @covers ::getAppId @covers ::getAppSecret
@dataProvider getFbServiceBadDataProvider
File
- tests/
src/ Unit/ SimpleFbConnectFbFactoryTest.php, line 75
Class
- SimpleFbConnectFbFactoryTest
- @coversDefaultClass Drupal\simple_fb_connect\SimpleFbConnectFbFactory @group simple_fb_connect
Namespace
Drupal\Tests\simple_fb_connect\UnitCode
public function testGetFbServiceWithBadData($app_id, $app_secret) {
$logger_channel = $this
->getMockBuilder('Drupal\\Core\\Logger\\LoggerChannel')
->disableOriginalConstructor()
->getMock();
$this->loggerFactory
->expects($this
->any())
->method('get')
->with('simple_fb_connect')
->willReturn($logger_channel);
$this
->finalizeSetup($app_id, $app_secret);
$this
->assertFalse($this->fbFactory
->getFbService());
}