From beb899d95a0ff35888a9df1a36ab9ada0c5f27ad Mon Sep 17 00:00:00 2001 From: Adib Hanna Date: Fri, 10 Feb 2017 17:26:47 -0800 Subject: [PATCH 1/2] update the namespace for the TestCase class. (tests are now namespaces in l54 under the Tests namespace) --- src/TestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TestCase.php b/src/TestCase.php index 2523fc3..998f07c 100644 --- a/src/TestCase.php +++ b/src/TestCase.php @@ -2,7 +2,7 @@ namespace Lucid\Foundation; -use TestCase as BaseTestCase; +use Illuminate\Foundation\Testing\TestCase as BaseTestCase; class TestCase extends BaseTestCase { From ce3412684622968e6dcc0900039ae153a5fa0f5a Mon Sep 17 00:00:00 2001 From: Adib Hanna Date: Fri, 10 Feb 2017 17:27:11 -0800 Subject: [PATCH 2/2] use classes instead of stringsgs --- src/Validation.php | 2 +- src/Value.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Validation.php b/src/Validation.php index 0758265..049eed7 100644 --- a/src/Validation.php +++ b/src/Validation.php @@ -29,6 +29,6 @@ public function make(array $data, array $rules, array $messages = [], array $cus */ public function getValidationFactory() { - return app('Illuminate\Contracts\Validation\Factory'); + return app(Illuminate\Contracts\Validation\Factory::class); } } diff --git a/src/Value.php b/src/Value.php index b04c885..6cb3a04 100644 --- a/src/Value.php +++ b/src/Value.php @@ -34,7 +34,7 @@ public function __construct($value) */ public function validation(array $input, array $rules, array $messages = [], array $customAttributes = []) { - return app('Lucid\Foundation\Validation')->make($input, $rules, $messages, $customAttributes); + return app(Lucid\Foundation\Validation::class)->make($input, $rules, $messages, $customAttributes); } /**