Skip to content

Commit

Permalink
fixed styles
Browse files Browse the repository at this point in the history
  • Loading branch information
grantjanecek committed Nov 1, 2020
1 parent e6f7f67 commit a11955b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 14 deletions.
12 changes: 6 additions & 6 deletions tests/ArchivableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class ArchivableTest extends TestCase
{
/** @test */
function a_model_can_be_archived()
public function a_model_can_be_archived()
{
$model = ArchivableModel::factory()->create();

Expand All @@ -21,7 +21,7 @@ function a_model_can_be_archived()
}

/** @test */
function a_model_can_be_unarchived()
public function a_model_can_be_unarchived()
{
$model = ArchivableModel::factory()->archived()->create();

Expand All @@ -33,7 +33,7 @@ function a_model_can_be_unarchived()
}

/** @test */
function a_model_cannot_be_queried_normally_when_archived()
public function a_model_cannot_be_queried_normally_when_archived()
{
ArchivableModel::factory()->archived()->create();

Expand All @@ -45,7 +45,7 @@ function a_model_cannot_be_queried_normally_when_archived()
}

/** @test */
function all_models_can_be_found_with_the_withArchived_scope()
public function all_models_can_be_found_with_the_withArchived_scope()
{
ArchivableModel::factory()->archived()->create();
ArchivableModel::factory()->create();
Expand All @@ -54,7 +54,7 @@ function all_models_can_be_found_with_the_withArchived_scope()
}

/** @test */
function only_archived_models_can_be_found_with_the_onlyArchived_scope()
public function only_archived_models_can_be_found_with_the_onlyArchived_scope()
{
ArchivableModel::factory()->archived()->create();
ArchivableModel::factory()->create();
Expand All @@ -63,7 +63,7 @@ function only_archived_models_can_be_found_with_the_onlyArchived_scope()
}

/** @test */
function models_without_the_archivable_trait_are_not_scoped()
public function models_without_the_archivable_trait_are_not_scoped()
{
RegularModel::factory()->create();

Expand Down
4 changes: 1 addition & 3 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php


namespace LaravelArchivable\Tests;

use Illuminate\Database\Eloquent\Factories\Factory;
Expand All @@ -9,7 +8,6 @@
use LaravelArchivable\LaravelArchivableServiceProvider;
use Orchestra\Testbench\TestCase as Orchestra;


class TestCase extends Orchestra
{

Expand All @@ -18,7 +16,7 @@ public function setUp(): void
parent::setUp();

Factory::guessFactoryNamesUsing(
function(string $modelName){
function (string $modelName){
return 'LaravelArchivable\\Tests\\Database\\Factories\\' . class_basename($modelName) . 'Factory';
}
);
Expand Down
3 changes: 0 additions & 3 deletions tests/TestClasses/ArchivableModel.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<?php


namespace LaravelArchivable\Tests\TestClasses;


use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use LaravelArchivable\Archivable;


class ArchivableModel extends Model
{
use Archivable;
Expand Down
2 changes: 0 additions & 2 deletions tests/TestClasses/RegularModel.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<?php


namespace LaravelArchivable\Tests\TestClasses;


use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

Expand Down

0 comments on commit a11955b

Please sign in to comment.