File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Filter options
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 () {
701
701
Storage::disk('photos')->assertMissing('missing.jpg');
702
702
Storage::disk('photos')->assertMissing(['missing.jpg', 'non-existing.jpg']);
703
703
704
+ // Assert that the number of files in a given directory matches the expected count...
705
+ Storage::disk('photos')->assertCount('/wallpapers', 2);
706
+
704
707
// Assert that a given directory is empty...
705
708
Storage::disk('photos')->assertDirectoryEmpty('/wallpapers');
706
709
});
@@ -734,6 +737,9 @@ class ExampleTest extends TestCase
734
737
Storage::disk('photos')->assertMissing('missing.jpg');
735
738
Storage::disk('photos')->assertMissing(['missing.jpg', 'non-existing.jpg']);
736
739
740
+ // Assert that the number of files in a given directory matches the expected count...
741
+ Storage::disk('photos')->assertCount('/wallpapers', 2);
742
+
737
743
// Assert that a given directory is empty...
738
744
Storage::disk('photos')->assertDirectoryEmpty('/wallpapers');
739
745
}
You can’t perform that action at this time.
0 commit comments