ReviewOS

also looking at this

meemalabs/laravel-meema

Fix test cases

#15
Merged glennmichael123 wants to merge fix-test-cases into main
4 files +63 -25
tests/TagTest.phpmodified+6-2
Changes to tests/TagTest.php
@@ -48,7 +48,9 @@ it('can update a tag', function () {
4848});
4949
5050it('can fetch all media tags', function () {
51 $media = Media::find(1);
51 $allMedia = Media::get();
52
53 $media = Media::find($allMedia[0]['id']);
5254 $tags = $media->tags()->get();
5355
5456 $this->assertTrue($tags instanceof Collection);
@@ -56,7 +58,9 @@ it('can fetch all media tags', function () {
5658});
5759
5860it('can fetch all folder tags', function () {
59 $folder = Folder::find(1);
61 $folders = Folder::get();
62
63 $folder = Folder::find($folders[0]['id']);
6064
6165 $tags = $folder->tags()->get();
6266