Skip to content

Commit df435a4

Browse files
committed
Test that interface is registered in container not the implementation
1 parent a587b4f commit df435a4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/Sentry/ServiceProviderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace Sentry\Laravel\Tests;
44

5-
use Sentry\State\Hub;
65
use Sentry\Laravel\Facade;
76
use Sentry\Laravel\ServiceProvider;
7+
use Sentry\State\HubInterface;
88

99
class ServiceProviderTest extends \Orchestra\Testbench\TestCase
1010
{
@@ -31,7 +31,7 @@ protected function getPackageAliases($app)
3131
public function testIsBound()
3232
{
3333
$this->assertTrue(app()->bound('sentry'));
34-
$this->assertInstanceOf(Hub::class, app('sentry'));
34+
$this->assertInstanceOf(HubInterface::class, app('sentry'));
3535
$this->assertSame(app('sentry'), Facade::getFacadeRoot());
3636
}
3737

test/Sentry/ServiceProviderWithCustomAliasTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace Sentry\Laravel\Tests;
44

5-
use Sentry\State\Hub;
65
use Sentry\Laravel\Facade;
76
use Sentry\Laravel\ServiceProvider;
7+
use Sentry\State\HubInterface;
88

99
class ServiceProviderWithCustomAliasTest extends \Orchestra\Testbench\TestCase
1010
{
@@ -31,7 +31,7 @@ protected function getPackageAliases($app)
3131
public function testIsBound()
3232
{
3333
$this->assertTrue(app()->bound('custom-sentry'));
34-
$this->assertInstanceOf(Hub::class, app('custom-sentry'));
34+
$this->assertInstanceOf(HubInterface::class, app('custom-sentry'));
3535
$this->assertSame(app('custom-sentry'), CustomSentryFacade::getFacadeRoot());
3636
}
3737

0 commit comments

Comments
 (0)