Skip to content

Commit

Permalink
test cases integrated
Browse files Browse the repository at this point in the history
  • Loading branch information
Raza9798 committed Jul 22, 2024
1 parent fa91003 commit bfb8503
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/TestCase.php
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
{
//
}
33 changes: 33 additions & 0 deletions tests/Unit/ResourceGeneratorTest.php
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);
}
}

0 comments on commit bfb8503

Please sign in to comment.