mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-28 08:10:51 +02:00
Added an additional test method
This commit is contained in:
@@ -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 [
|
||||
|
Reference in New Issue
Block a user