Skip to content

Commit 2f7c71e

Browse files
committed
refactored unit tests into Unit subdir
1 parent ddf662c commit 2f7c71e

9 files changed

+11
-11
lines changed

phpunit.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
</report>
1414
</coverage>
1515
<testsuites>
16-
<testsuite name="LaravelSqlReporter">
17-
<directory suffix="Test.php">./tests</directory>
16+
<testsuite name="Unit">
17+
<directory suffix="Test.php">./tests/Unit</directory>
1818
</testsuite>
1919
</testsuites>
2020
</phpunit>

tests/ConfigTest.php renamed to tests/Unit/ConfigTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Tests;
3+
namespace Tests\Unit;
44

55
use Illuminate\Contracts\Config\Repository;
66
use Onlime\LaravelSqlReporter\Config;

tests/EventServiceProviderTest.php renamed to tests/Unit/EventServiceProviderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Tests;
3+
namespace Tests\Unit;
44

55
use Illuminate\Container\Container;
66
use Illuminate\Database\DatabaseManager;
@@ -29,7 +29,7 @@ public function it_merges_config_and_publishes_when_nothing_should_be_logged()
2929
// $app->shouldReceive('configFileLocation')->atLeast()->once()
3030
// ->withNoArgs()->andReturn($baseDir . '/sql-reporter.php');
3131

32-
$configFile = realpath(__DIR__ . '/../config/sql-reporter.php');
32+
$configFile = realpath(__DIR__ . '/../../config/sql-reporter.php');
3333
$provider->shouldReceive('mergeConfigFrom')->once()->with(
3434
$configFile,
3535
'sql-reporter'

tests/FileNameTest.php renamed to tests/Unit/FileNameTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Tests;
3+
namespace Tests\Unit;
44

55
use Carbon\Carbon;
66
use Illuminate\Container\Container;

tests/FormatterTest.php renamed to tests/Unit/FormatterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Tests;
3+
namespace Tests\Unit;
44

55
use ArrayAccess;
66
use Carbon\Carbon;

tests/SqlLoggerTest.php renamed to tests/Unit/SqlLoggerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Tests;
3+
namespace Tests\Unit;
44

55
use Illuminate\Support\Facades\DB;
66
use Mockery;

tests/SqlQueryTest.php renamed to tests/Unit/SqlQueryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Tests;
3+
namespace Tests\Unit;
44

55
use Illuminate\Support\Carbon;
66
use Onlime\LaravelSqlReporter\SqlQuery;

tests/UnitTestCase.php renamed to tests/Unit/UnitTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Tests;
3+
namespace Tests\Unit;
44

55
use Carbon\Carbon;
66
use Mockery;

tests/WriterTest.php renamed to tests/Unit/WriterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Tests;
3+
namespace Tests\Unit;
44

55
use Carbon\Carbon;
66
use Illuminate\Filesystem\Filesystem;

0 commit comments

Comments
 (0)