-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace Tests; | ||
|
||
use Illuminate\Foundation\Testing\TestCase as BaseTestCase; | ||
|
||
abstract class TestCase extends BaseTestCase | ||
{ | ||
// | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace Intelrx\Rapidkit\Tests\Unit; | ||
|
||
use Illuminate\Support\Facades\Artisan; | ||
use Illuminate\Support\Facades\Log; | ||
use Tests\TestCase; | ||
class ResourceGeneratorTest extends TestCase | ||
{ | ||
/** | ||
* A basic unit test example. | ||
*/ | ||
public function test_create_resources_on_root(): void | ||
{ | ||
Artisan::call('rapid:make', [ | ||
'name' => 'division', | ||
]); | ||
$output = Artisan::output(); | ||
Log::debug($output); | ||
$this->assertTrue(true); | ||
} | ||
|
||
public function test_create_resources_as_module(): void | ||
{ | ||
Artisan::call('rapid:make', [ | ||
'name' => 'country', | ||
'--path' => 'master', | ||
]); | ||
$output = Artisan::output(); | ||
Log::debug($output); | ||
$this->assertTrue(true); | ||
} | ||
} |