From 2050fd19d4e36f1f6d58c88b018d40418ce390cb Mon Sep 17 00:00:00 2001 From: Chris Kankiewicz Date: Thu, 31 Dec 2020 12:51:40 -0700 Subject: [PATCH] Added an additional test method --- tests/HiddenFilesTest.php | 9 +++++++++ 1 file changed, 9 insertions(+) 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 [