generated from spatie/package-skeleton-laravel
-
-
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.
Merge pull request #13 from savannabits/0.x-dev
Bug Fixed: Was failing to recognize existing model when creating a si…
- Loading branch information
Showing
4 changed files
with
28 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
use function Pest\Laravel\artisan; | ||
|
||
test('modular installs successfully', function () { | ||
// Run modular:install, expect composer to have an entry for a local modules/* repository | ||
artisan('modular:install', ['--no-interaction' => true]) | ||
->expectsQuestion('Would you like to star our repo on GitHub?', 'no') | ||
->expectsOutputToContain('modular has been installed!'); | ||
}); | ||
|
||
test('composer has been configured with modules/* repository', function () { | ||
// Run artisan modular:install command | ||
$composerJson = json_decode(file_get_contents(base_path('composer.json')), true); | ||
expect($composerJson['repositories'])->toBeArray() | ||
->and($composerJson['repositories'])->toContain([ | ||
'type' => 'path', | ||
'url' => 'modules/*', | ||
'options' => [ | ||
'symlink' => true, | ||
], | ||
]); | ||
}); |
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 @@ | ||
<?php |