From 5f57007843c20dad1bf7464158cf1dcaa9c028ea Mon Sep 17 00:00:00 2001 From: Ngoc Linh Pham Date: Mon, 7 Oct 2019 22:50:47 +0700 Subject: [PATCH] Add service provider test --- .../GoogleDistanceServiceProviderTest.php | 16 ++++++++++++++++ tests/TestCase.php | 1 + 2 files changed, 17 insertions(+) create mode 100644 tests/Feature/GoogleDistanceServiceProviderTest.php diff --git a/tests/Feature/GoogleDistanceServiceProviderTest.php b/tests/Feature/GoogleDistanceServiceProviderTest.php new file mode 100644 index 0000000..b166579 --- /dev/null +++ b/tests/Feature/GoogleDistanceServiceProviderTest.php @@ -0,0 +1,16 @@ +assertInstanceOf(ServiceProvider::class, new GoogleDistanceServiceProvider($this->app)); + } +} diff --git a/tests/TestCase.php b/tests/TestCase.php index 901b140..82801d0 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -20,5 +20,6 @@ public function getPackageProviders($app) public function getEnvironmentSetUp($app) { + $app['config']->set('google-distance.api_key', 'foo'); } }