Skip to content

Commit

Permalink
DBP: Tests structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-ivanov committed Mar 7, 2017
1 parent 1deafeb commit 78e1873
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php",
"tests/fixture/app"
"tests/DbProfiler/TestCase.php",
"tests/DbProfiler/fixture/app"
]
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

namespace Illuminated\Database\DbProfiler\Tests;

class ConsoleProfilingTest extends TestCase
{
protected function runningInConsole()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

namespace Illuminated\Database\DbProfiler\Tests;

class HttpProfilingTest extends TestCase
{
protected function runningInConsole()
Expand Down
10 changes: 8 additions & 2 deletions tests/TestCase.php → tests/DbProfiler/TestCase.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
<?php

namespace Illuminated\Database\DbProfiler\Tests;

use Illuminate\Database\Events\QueryExecuted;
use Illuminate\Foundation\Application;
use Illuminate\Support\Facades\DB;
use Illuminated\Database\DbProfilerServiceProvider;
use Mockery;
use Orchestra\Database\ConsoleServiceProvider;
use Post;

abstract class TestCase extends \Orchestra\Testbench\TestCase
{
Expand All @@ -22,8 +28,8 @@ public function setUp()

protected function getPackageProviders($app)
{
if (class_exists(Orchestra\Database\ConsoleServiceProvider::class)) {
return [Orchestra\Database\ConsoleServiceProvider::class];
if (class_exists(ConsoleServiceProvider::class)) {
return [ConsoleServiceProvider::class];
}

return [];
Expand Down

0 comments on commit 78e1873

Please sign in to comment.