@@ -20,40 +20,40 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | class TestCase extends OrchestraTestCase { |
| 22 | 22 | |
| 23 | - /** |
|
| 24 | - * Load package alias |
|
| 25 | - * |
|
| 26 | - * @param \Illuminate\Foundation\Application $app |
|
| 27 | - * |
|
| 28 | - * @return array |
|
| 29 | - */ |
|
| 30 | - protected function getPackageAliases($app) { |
|
| 31 | - |
|
| 32 | - return [ |
|
| 33 | - 'ReCaptcha' => ReCaptcha::class, |
|
| 34 | - ]; |
|
| 35 | - } |
|
| 36 | - |
|
| 37 | - /** |
|
| 38 | - * Load package service provider |
|
| 39 | - * |
|
| 40 | - * @param \Illuminate\Foundation\Application $app |
|
| 41 | - * |
|
| 42 | - * @return array |
|
| 43 | - */ |
|
| 44 | - protected function getPackageProviders($app) { |
|
| 45 | - |
|
| 46 | - return [ReCaptchaServiceProvider::class]; |
|
| 47 | - } |
|
| 48 | - |
|
| 49 | - /** |
|
| 50 | - * Setup the test environment. |
|
| 51 | - */ |
|
| 52 | - protected function setUp() { |
|
| 53 | - |
|
| 54 | - parent::setUp(); // TODO: Change the autogenerated stub |
|
| 55 | - |
|
| 56 | - $this->createApplication(); |
|
| 57 | - |
|
| 58 | - } |
|
| 23 | + /** |
|
| 24 | + * Load package alias |
|
| 25 | + * |
|
| 26 | + * @param \Illuminate\Foundation\Application $app |
|
| 27 | + * |
|
| 28 | + * @return array |
|
| 29 | + */ |
|
| 30 | + protected function getPackageAliases($app) { |
|
| 31 | + |
|
| 32 | + return [ |
|
| 33 | + 'ReCaptcha' => ReCaptcha::class, |
|
| 34 | + ]; |
|
| 35 | + } |
|
| 36 | + |
|
| 37 | + /** |
|
| 38 | + * Load package service provider |
|
| 39 | + * |
|
| 40 | + * @param \Illuminate\Foundation\Application $app |
|
| 41 | + * |
|
| 42 | + * @return array |
|
| 43 | + */ |
|
| 44 | + protected function getPackageProviders($app) { |
|
| 45 | + |
|
| 46 | + return [ReCaptchaServiceProvider::class]; |
|
| 47 | + } |
|
| 48 | + |
|
| 49 | + /** |
|
| 50 | + * Setup the test environment. |
|
| 51 | + */ |
|
| 52 | + protected function setUp() { |
|
| 53 | + |
|
| 54 | + parent::setUp(); // TODO: Change the autogenerated stub |
|
| 55 | + |
|
| 56 | + $this->createApplication(); |
|
| 57 | + |
|
| 58 | + } |
|
| 59 | 59 | } |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | 11 | Route::get( |
| 12 | - // \Illuminate\Support\Facades\Config instead of "config" helper to avoid exceptions during coverage tests |
|
| 13 | - config('recaptcha.default_validation_route', 'biscolab-recaptcha/validate'), |
|
| 14 | - ['uses' => 'Biscolab\ReCaptcha\Controllers\ReCaptchaController@validateV3'] |
|
| 12 | + // \Illuminate\Support\Facades\Config instead of "config" helper to avoid exceptions during coverage tests |
|
| 13 | + config('recaptcha.default_validation_route', 'biscolab-recaptcha/validate'), |
|
| 14 | + ['uses' => 'Biscolab\ReCaptcha\Controllers\ReCaptchaController@validateV3'] |
|
| 15 | 15 | )->middleware('web'); |
| 16 | 16 | \ No newline at end of file |