From d2fe0167e13d81b0c1cd8c1fd8f9f116398bd07c Mon Sep 17 00:00:00 2001 From: theresa Date: Mon, 22 Nov 2021 13:26:01 +0100 Subject: [PATCH] Tests: Add state album fixture --- internal/entity/album_fixtures.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/internal/entity/album_fixtures.go b/internal/entity/album_fixtures.go index a332b3213..8a92c5eb4 100644 --- a/internal/entity/album_fixtures.go +++ b/internal/entity/album_fixtures.go @@ -221,6 +221,30 @@ var AlbumFixtures = AlbumMap{ UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC), DeletedAt: nil, }, + "california-usa": { + ID: 1000008, + AlbumUID: "at1lxuqipogaab11", + AlbumSlug: "california-usa", + AlbumPath: "", + AlbumType: AlbumState, + AlbumTitle: "California / USA", + AlbumLocation: "", + AlbumCategory: "", + AlbumCaption: "", + AlbumDescription: "", + AlbumNotes: "", + AlbumFilter: "public:true country:us state:California", + AlbumOrder: "newest", + AlbumTemplate: "", + AlbumCountry: "us", + AlbumYear: 0, + AlbumMonth: 0, + AlbumDay: 0, + AlbumFavorite: false, + CreatedAt: time.Date(2019, 7, 1, 0, 0, 0, 0, time.UTC), + UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC), + DeletedAt: nil, + }, } // CreateAlbumFixtures inserts known entities into the database for testing.