added socialite and some hacks via vendor sideload to add social login

This commit is contained in:
2018-07-08 23:59:32 +02:00
parent d1fa087121
commit 6e2040249b
123 changed files with 4356 additions and 6 deletions
@@ -0,0 +1,38 @@
<?php
use Illuminate\Database\Capsule\Manager as DB;
abstract class FunctionalTestCase extends PHPUnit_Framework_TestCase
{
public function setUp()
{
$this->configureDatabase();
$this->migrateIdentitiesTable();
}
protected function configureDatabase()
{
$db = new DB;
$db->addConnection(array(
'driver' => 'sqlite',
'database' => ':memory:',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
));
$db->bootEloquent();
$db->setAsGlobal();
}
public function migrateIdentitiesTable()
{
DB::schema()->create('oauth_identities', function($table) {
$table->increments('id');
$table->integer('user_id')->unsigned();
$table->string('provider_user_id');
$table->string('provider');
$table->string('access_token');
$table->timestamps();
});
}
}