Skip to content

Commit

Permalink
Updates tests to ensure PR4 compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
adam committed Aug 6, 2020
1 parent 0d16fb1 commit 4c9dcb1
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 10 deletions.
6 changes: 6 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
"name": "netsells/laravel-geoscope",
"description": "An easy to use trait that can be added to models to allow distance based scopes to be applied",
"type": "library",
"keywords": [
"laravel",
"latitude",
"longitude",
"distance"
],
"license": "MIT",
"authors": [
{
Expand Down
3 changes: 1 addition & 2 deletions tests/Integration/Database/Factories/TestFactory.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php

use Faker\Generator as Faker;
use Netsells\GeoScope\Tests\Test;
use \Netsells\GeoScope\Tests\Test2;
use Netsells\GeoScope\Tests\Integration\Database\Models\Test;

/** @var \Illuminate\Database\Eloquent\Factory $factory */
$factory->define(
Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/Database/Models/Test.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Netsells\GeoScope\Tests;
namespace Netsells\GeoScope\Tests\Integration\Database\Models;

use Illuminate\Database\Eloquent\Model;
use Netsells\GeoScope\Traits\GeoScopeTrait;
Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/Database/Models/Test2.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Netsells\GeoScope\Tests;
namespace Netsells\GeoScope\Integration\Database\Models;

use Illuminate\Database\Eloquent\Model;
use Netsells\GeoScope\Traits\GeoScopeTrait;
Expand Down
3 changes: 1 addition & 2 deletions tests/Integration/ScopeDrivers/BaseScopeDriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Collection;
use Netsells\GeoScope\Tests\Test;
use Netsells\GeoScope\Tests\Test2;
use Netsells\GeoScope\Tests\Integration\Database\Models\Test;

abstract class BaseScopeDriverTest extends ScopeDriverTestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/ScopeDrivers/ScopeDriverTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Netsells\GeoScope\BuilderScopes\EloquentBuilderScope;
use Netsells\GeoScope\ScopeDriverFactory;
use Netsells\GeoScope\Tests\Integration\IntegrationTestCase;
use Netsells\GeoScope\Tests\Test;
use Netsells\GeoScope\Tests\Integration\Database\Models\Test;

abstract class ScopeDriverTestCase extends IntegrationTestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

namespace Netsells\GeoScope\Tests\Integration\ScopeDrivers\Traits;

use Netsells\GeoScope\Tests\Test;
use Netsells\GeoScope\Tests\Integration\Database\Models\Test;
use Illuminate\Support\Facades\DB;
use Netsells\GeoScope\Tests\Test2;
use Netsells\GeoScope\Exceptions\InvalidDistanceFieldNameException;

trait ScopeDriverDBBuilderTests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Netsells\GeoScope\Exceptions\InvalidConfigException;
use Netsells\GeoScope\Exceptions\InvalidDistanceFieldNameException;
use Netsells\GeoScope\Exceptions\ScopeDriverNotFoundException;
use Netsells\GeoScope\Tests\Test;
use Netsells\GeoScope\Tests\Integration\Database\Models\Test;

trait ScopeDriverEloquentBuilderTests
{
Expand Down

0 comments on commit 4c9dcb1

Please sign in to comment.