/** * @dataProvider isConfigSetupDataProvider */ public function testIsConfigSetup($expected, $fbAppId, $fbAppSecret) { $this->fbAppId = $fbAppId; $this->fbAppSecret = $fbAppSecret; $app = $this->getMock('WikiaApp', array('getGlobal')); $app->expects($this->any())->method('getGlobal')->will($this->returnCallback(array($this, 'isConfigSetupGlobalsCallback'))); F::setInstance('App', $app); $result = FBConnectAPI::isConfigSetup(); $this->assertEquals($expected, $result); }