public function testFakeSyncOpenIDWrongConnection()
 {
     $fakeSyncService = new SyncService(['serviceClass' => '\\yii\\authclient\\OpenId', 'returnUrl' => 'http://my_own_site/returnUrl']);
     $this->setExpectedException('yii\\base\\Exception', Yii::t('SyncSocial', 'SyncSocial is not support {serviceName}.', ['serviceName' => 'yii\\authclient\\OpenId']));
     $fakeSyncService->connect();
     $this->assertTrue(true);
 }
 public function testConnectionOpenID()
 {
     $className = 'yii\\authclient\\OpenId';
     $this->setExpectedException('yii\\base\\Exception', Yii::t('SyncSocial', 'SyncSocial is not support {serviceName}.', ['serviceName' => $className]));
     $sync = new SyncService(['serviceClass' => $className]);
     $sync->connect();
     $this->assertTrue(true);
 }