Tests: Add state album fixture

This commit is contained in:
theresa 2021-11-22 13:26:01 +01:00
parent a2621fd927
commit d2fe0167e1

View file

@ -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.