diff --git a/tests/HiddenFilesTest.php b/tests/HiddenFilesTest.php index 18a03f3..fc2bdd5 100644 --- a/tests/HiddenFilesTest.php +++ b/tests/HiddenFilesTest.php @@ -3,6 +3,7 @@ namespace Tests; use App\HiddenFiles; +use BadMethodCallException; use Tightenco\Collect\Support\Collection; /** @covers \App\HiddenFiles */ @@ -25,6 +26,14 @@ class HiddenFilesTest extends TestCase $this->assertEquals($expected, $hiddenFiles->values()->toArray()); } + /** @test */ + public function it_can_not_be_instantiated_via_the_static_make_method(): void + { + $this->expectException(BadMethodCallException::class); + + HiddenFiles::make([]); + } + public function hiddenFilesProvider(): array { return [