forked from InterNACHI/modular
-
Notifications
You must be signed in to change notification settings - Fork 1
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
5 changed files
with
115 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 |
---|---|---|
|
@@ -19,3 +19,4 @@ yarn-error.log | |
|
||
npm-debug.log* | ||
.phpunit.result.cache | ||
composer.lock |
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,44 @@ | ||
{ | ||
"name": "internachi/modular", | ||
"description": "Modularize your Laravel apps", | ||
"keywords": [ | ||
"laravel", | ||
"modules", | ||
"modular", | ||
"module" | ||
], | ||
"version": "1.0", | ||
"type": "library", | ||
"license": "MIT", | ||
"autoload": { | ||
"psr-4": { | ||
"InterNACHI\\Modular\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"InterNACHI\\Modular\\Tests\\": "tests/" | ||
} | ||
}, | ||
"minimum-stability": "stable", | ||
"extra": { | ||
"laravel": { | ||
"providers": [ | ||
"InterNACHI\\Modular\\Support\\ModularServiceProvider", | ||
"InterNACHI\\Modular\\Support\\ModularizedCommandsServiceProvider" | ||
], | ||
"aliases": { | ||
"Modules": "InterNACHI\\Modular\\Support\\Facades\\Modules" | ||
} | ||
} | ||
}, | ||
"require": { | ||
"php": ">=7.4", | ||
"illuminate/support": "^7.0|^8.0" | ||
}, | ||
"require-dev": { | ||
"orchestra/testbench": "^5.0", | ||
"phpunit/phpunit": "^8.0", | ||
"mockery/mockery": "^1.3" | ||
} | ||
} |
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,7 @@ | ||
<?php | ||
|
||
return [ | ||
'modules_directory' => 'app-modules', | ||
'modules_namespace' => 'Modules', | ||
'tests_base' => 'Tests\TestCase', | ||
]; |
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,39 @@ | ||
<?php | ||
|
||
namespace InterNACHI\Modular\Tests; | ||
|
||
use InterNACHI\Modular\Support\Facades\Modules; | ||
use InterNACHI\Modular\Support\ModularizedCommandsServiceProvider; | ||
use InterNACHI\Modular\Support\ModularServiceProvider; | ||
use Orchestra\Testbench\TestCase as Orchestra; | ||
|
||
abstract class TestCase extends Orchestra | ||
{ | ||
protected function setUp() : void | ||
{ | ||
parent::setUp(); | ||
|
||
$config = $this->app['config']; | ||
|
||
// Add encryption key for HTTP tests | ||
$config->set('app.key', 'base64:tfsezwCu4ZRixRLA/+yL/qoouX++Q3lPAPOAbtnBCG8='); | ||
|
||
// Add feature stubs to view | ||
$this->app['view']->addLocation(__DIR__.'/Feature/stubs'); | ||
} | ||
|
||
protected function getPackageProviders($app) | ||
{ | ||
return [ | ||
ModularServiceProvider::class, | ||
ModularizedCommandsServiceProvider::class, | ||
]; | ||
} | ||
|
||
protected function getPackageAliases($app) | ||
{ | ||
return [ | ||
'Modules' => Modules::class, | ||
]; | ||
} | ||
} |