From b98fcf3b1464e31a33cbdb3637875341dbec11c6 Mon Sep 17 00:00:00 2001 From: Nafies Luthfi Date: Sun, 24 Sep 2017 09:16:49 +0800 Subject: [PATCH] Fix model unit test content --- src/stubs/route-web.stub | 2 +- src/stubs/test-unit.stub | 10 +--------- tests/Generators/ModelTestGeneratorTest.php | 10 +--------- 3 files changed, 3 insertions(+), 19 deletions(-) diff --git a/src/stubs/route-web.stub b/src/stubs/route-web.stub index 6efae1f..edd9fd5 100644 --- a/src/stubs/route-web.stub +++ b/src/stubs/route-web.stub @@ -1,2 +1,2 @@ -Route::apiResource('masters', 'MastersController'; +Route::apiResource('masters', 'MastersController'); diff --git a/src/stubs/test-unit.stub b/src/stubs/test-unit.stub index b0b7575..92acc25 100644 --- a/src/stubs/test-unit.stub +++ b/src/stubs/test-unit.stub @@ -7,13 +7,5 @@ use Illuminate\Foundation\Testing\DatabaseMigrations; class MasterTest extends TestCase { - /** - * A basic test example. - * - * @return void - */ - public function testExample() - { - $this->assertTrue(true); - } + use DatabaseMigrations; } diff --git a/tests/Generators/ModelTestGeneratorTest.php b/tests/Generators/ModelTestGeneratorTest.php index e51edb1..a2bf07d 100644 --- a/tests/Generators/ModelTestGeneratorTest.php +++ b/tests/Generators/ModelTestGeneratorTest.php @@ -21,15 +21,7 @@ use Illuminate\Foundation\Testing\DatabaseMigrations; class ItemTest extends TestCase { - /** - * A basic test example. - * - * @return void - */ - public function testExample() - { - \$this->assertTrue(true); - } + use DatabaseMigrations; } "; $this->assertEquals($modelClassContent, file_get_contents(base_path("tests/Unit/Models/{$this->modelName}Test.php")));