File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <?php declare (strict_types=1 );
2+
3+ namespace Hyperized \Hostfact \Tests \Feature ;
4+
5+ use Hyperized \Hostfact \HostfactFacade ;
6+ use Hyperized \Hostfact \Providers \HostfactServiceProvider ;
7+ use Orchestra \Testbench \TestCase ;
8+
9+ class HostfactFacadeTest extends TestCase
10+ {
11+ protected function getPackageProviders ($ app ): array
12+ {
13+ return [
14+ HostfactServiceProvider::class,
15+ ];
16+ }
17+
18+ public function testFacadeAccessorReturnsHostfact (): void
19+ {
20+ $ accessor = (new \ReflectionMethod (HostfactFacade::class, 'getFacadeAccessor ' ))->invoke (null );
21+ self ::assertSame ('Hostfact ' , $ accessor );
22+ }
23+ }
Original file line number Diff line number Diff line change @@ -95,4 +95,10 @@ public function testPublishTargetIsConfigPath(): void
9595 self ::assertIsString ($ target );
9696 self ::assertStringEndsWith ('Hostfact.php ' , $ target );
9797 }
98+
99+ public function testProvidesReturnsEmptyArray (): void
100+ {
101+ $ provider = new HostfactServiceProvider ($ this ->app );
102+ self ::assertSame ([], $ provider ->provides ());
103+ }
98104}
You can’t perform that action at this time.
0 commit comments