Skip to content
This repository has been archived by the owner on Feb 26, 2018. It is now read-only.

Commit

Permalink
Alias Capsule to DB
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan committed Apr 14, 2014
1 parent 76fba13 commit b2e9cb4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/FunctionalTestCase.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use Illuminate\Database\Capsule\Manager as Capsule;
use Illuminate\Database\Capsule\Manager as DB;

abstract class FunctionalTestCase extends PHPUnit_Framework_TestCase
{
Expand All @@ -12,8 +12,8 @@ public function setUp()

protected function configureDatabase()
{
$capsule = new Capsule;
$capsule->addConnection([
$db = new DB;
$db->addConnection([
'driver' => 'sqlite',
'host' => 'localhost',
'database' => ':memory:',
Expand All @@ -23,13 +23,13 @@ protected function configureDatabase()
'collation' => 'utf8_unicode_ci',
'prefix' => '',
]);
$capsule->bootEloquent();
$capsule->setAsGlobal();
$db->bootEloquent();
$db->setAsGlobal();
}

public function migrateIdentitiesTable()
{
Capsule::schema()->create('oauth_identities', function($table) {
DB::schema()->create('oauth_identities', function($table) {
$table->increments('id');
$table->integer('user_id')->unsigned();
$table->string('provider_user_id');
Expand Down

0 comments on commit b2e9cb4

Please sign in to comment.