Skip to content

Commit

Permalink
Cleanup in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abbasali committed Apr 27, 2020
1 parent 7bd3bfe commit be6f943
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 37 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,13 @@ Seeded? | Seeder
Yes | UsersTableSeeder
No | RolesTableSeeder

## Testing

The package unit tests can be executed with the following command (from inside package's root directory)
```
/path/to/phpunit
```

## Credits

- [Abbas Ali](https://github.com/abbasali)
Expand Down
12 changes: 0 additions & 12 deletions tests/ConfigTest.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
<?php
namespace Ranium\SeedOnce\Test;

use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
use Ranium\SeedOnce\Repositories\SeederRepositoryInterface;

class ConfigTest extends TestCase
{
/**
* Set up test case
*
* @return void
*/
public function setUp(): void
{
parent::setUp();
}

/**
* Define environment setup.
*
Expand Down
14 changes: 0 additions & 14 deletions tests/MarkSeededTest.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
<?php
namespace Ranium\SeedOnce\Test;

use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
use Ranium\SeedOnce\Repositories\SeederRepositoryInterface;

class MarkSeededTest extends TestCase
{
/**
* Set up test case
*
* @return void
*/
public function setUp(): void
{
parent::setUp();
}

/** @test */
public function it_can_mark_all_seeders_as_seeded()
{
Expand Down
11 changes: 0 additions & 11 deletions tests/SeedOnceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,9 @@

use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
use Ranium\SeedOnce\Repositories\SeederRepositoryInterface;

class SeedOnceTest extends TestCase
{
/**
* Set up test case
*
* @return void
*/
public function setUp(): void
{
parent::setUp();
}

/** @test */
public function it_migrates_seeders_table()
{
Expand Down

0 comments on commit be6f943

Please sign in to comment.