Skip to content

Commit

Permalink
Add service provider test
Browse files Browse the repository at this point in the history
  • Loading branch information
pnlinh committed Oct 7, 2019
1 parent 16d2e2a commit 5f57007
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/Feature/GoogleDistanceServiceProviderTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace Pnlinh\GoogleDistance\Tests\Feature;

use Illuminate\Support\ServiceProvider;
use Pnlinh\GoogleDistance\Providers\GoogleDistanceServiceProvider;
use Pnlinh\GoogleDistance\Tests\TestCase;

class GoogleDistanceServiceProviderTest extends TestCase
{
/** @test */
public function it_can_be_constructed()
{
$this->assertInstanceOf(ServiceProvider::class, new GoogleDistanceServiceProvider($this->app));
}
}
1 change: 1 addition & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ public function getPackageProviders($app)

public function getEnvironmentSetUp($app)
{
$app['config']->set('google-distance.api_key', 'foo');
}
}

0 comments on commit 5f57007

Please sign in to comment.