Browse Source

Fix model unit test content

tags/0.1.0
Nafies Luthfi 8 years ago
parent
commit
b98fcf3b14
  1. 2
      src/stubs/route-web.stub
  2. 10
      src/stubs/test-unit.stub
  3. 10
      tests/Generators/ModelTestGeneratorTest.php

2
src/stubs/route-web.stub

@ -1,2 +1,2 @@
Route::apiResource('masters', 'MastersController';
Route::apiResource('masters', 'MastersController');

10
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;
}

10
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")));

Loading…
Cancel
Save