File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -701,6 +701,9 @@ test('albums can be uploaded', function () {
701701 Storage::disk('photos')->assertMissing('missing.jpg');
702702 Storage::disk('photos')->assertMissing(['missing.jpg', 'non-existing.jpg']);
703703
704+ // Assert that the number of files in a given directory matches the expected count...
705+ Storage::disk('photos')->assertCount('/wallpapers', 2);
706+
704707 // Assert that a given directory is empty...
705708 Storage::disk('photos')->assertDirectoryEmpty('/wallpapers');
706709});
@@ -734,6 +737,9 @@ class ExampleTest extends TestCase
734737 Storage::disk('photos')->assertMissing('missing.jpg');
735738 Storage::disk('photos')->assertMissing(['missing.jpg', 'non-existing.jpg']);
736739
740+ // Assert that the number of files in a given directory matches the expected count...
741+ Storage::disk('photos')->assertCount('/wallpapers', 2);
742+
737743 // Assert that a given directory is empty...
738744 Storage::disk('photos')->assertDirectoryEmpty('/wallpapers');
739745 }
You can’t perform that action at this time.
0 commit comments