-
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.
* Update v0.1.1 (#6) * Update composer.json * Update dependabot.yml * Update phpstan.yml * Update default stub dir * Update stub dir, base path * Fix typo * Update Pest(TestCase) * Update GitHub Actions * Update run-tests.yml * Fix typo * Fix versions * Update run-tests.yml * Remove php 8.1 testing * Fix typo * Fix typo * Update composer.json * Update run-tests.yml * Update run-tests.yml * Fix typo * Fix typo * Bump ramsey/composer-install from 2 to 3 (#2) Bumps [ramsey/composer-install](https://github.com/ramsey/composer-install) from 2 to 3. - [Release notes](https://github.com/ramsey/composer-install/releases) - [Commits](ramsey/composer-install@v2...v3) --- updated-dependencies: - dependency-name: ramsey/composer-install dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: kimchanhyung98 <[email protected]> * Bump aglipanci/laravel-pint-action from 2.3.1 to 2.4 (#4) Bumps [aglipanci/laravel-pint-action](https://github.com/aglipanci/laravel-pint-action) from 2.3.1 to 2.4. - [Release notes](https://github.com/aglipanci/laravel-pint-action/releases) - [Commits](aglipanci/laravel-pint-action@2.3.1...2.4) --- updated-dependencies: - dependency-name: aglipanci/laravel-pint-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: kimchanhyung98 <[email protected]> * Bump dependabot/fetch-metadata from 1.6.0 to 2.1.0 (#5) Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 1.6.0 to 2.1.0. - [Release notes](https://github.com/dependabot/fetch-metadata/releases) - [Commits](dependabot/fetch-metadata@v1.6.0...v2.1.0) --- updated-dependencies: - dependency-name: dependabot/fetch-metadata dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: kimchanhyung98 <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
73d2ae1
commit df2fe1e
Showing
14 changed files
with
62 additions
and
50 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
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
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
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
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
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
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 |
---|---|---|
|
@@ -6,7 +6,6 @@ composer.lock | |
coverage | ||
docs | ||
phpunit.xml | ||
phpstan.neon | ||
testbench.yaml | ||
vendor | ||
node_modules | ||
|
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
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
Empty file.
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,9 @@ | ||
parameters: | ||
level: 5 | ||
paths: | ||
- src | ||
- config | ||
tmpDir: build/phpstan | ||
checkOctaneCompatibility: true | ||
checkModelProperties: true | ||
checkMissingIterableValueType: false |
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 |
---|---|---|
@@ -1,28 +1,13 @@ | ||
<?php | ||
|
||
namespace Kimchanhyung98\LaravelMaker\Tests; | ||
use function Pest\Laravel\artisan; | ||
|
||
use Kimchanhyung98\LaravelMaker\MakerServiceProvider; | ||
use Orchestra\Testbench\TestCase as Orchestra; | ||
it('executed artisan make:action command', function () { | ||
artisan('make:action', ['name' => 'SampleAction'])->assertExitCode(0); | ||
expect(file_exists(app_path('Actions/SampleAction.php')))->toBeTrue(); | ||
}); | ||
|
||
class MakeTest extends Orchestra | ||
{ | ||
protected function getPackageProviders($app): array | ||
{ | ||
return [ | ||
MakerServiceProvider::class, | ||
]; | ||
} | ||
|
||
public function test_artisan_make_action_command(): void | ||
{ | ||
$this->artisan('make:action SampleAction')->assertSuccessful(); | ||
$this->assertFileExists(app_path('Actions/SampleAction.php')); | ||
} | ||
|
||
public function test_artisan_make_service_command(): void | ||
{ | ||
$this->artisan('make:service SampleService')->assertSuccessful(); | ||
$this->assertFileExists(app_path('Services/SampleService.php')); | ||
} | ||
} | ||
it('executed artisan make:service command', function () { | ||
artisan('make:service', ['name' => 'SampleService'])->assertExitCode(0); | ||
expect(file_exists(app_path('Services/SampleService.php')))->toBeTrue(); | ||
}); |
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,5 @@ | ||
<?php | ||
|
||
use Kimchanhyung98\LaravelMaker\Tests\TestCase; | ||
|
||
uses(TestCase::class)->in(__DIR__); |
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,16 @@ | ||
<?php | ||
|
||
namespace Kimchanhyung98\LaravelMaker\Tests; | ||
|
||
use Kimchanhyung98\LaravelMaker\MakerServiceProvider; | ||
use Orchestra\Testbench\TestCase as Orchestra; | ||
|
||
class TestCase extends Orchestra | ||
{ | ||
protected function getPackageProviders($app): array | ||
{ | ||
return [ | ||
MakerServiceProvider::class, | ||
]; | ||
} | ||
} |