mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
Fix album filename in tests
This commit is contained in:
parent
965e0125a3
commit
852f166dfc
1 changed files with 20 additions and 4 deletions
|
@ -47,11 +47,27 @@ class FilesBuilder {
|
|||
class AlbumBuilder {
|
||||
AlbumBuilder({
|
||||
DateTime? lastUpdated,
|
||||
this.name = "test",
|
||||
this.albumFilename = "test1.json",
|
||||
String? name,
|
||||
this.albumFilename = "test0.nc_album.json",
|
||||
this.fileId = 0,
|
||||
this.ownerId = "admin",
|
||||
}) : lastUpdated = lastUpdated ?? DateTime.utc(2020, 1, 2, 3, 4, 5);
|
||||
String? ownerId,
|
||||
}) : lastUpdated = lastUpdated ?? DateTime.utc(2020, 1, 2, 3, 4, 5),
|
||||
name = name ?? "test",
|
||||
ownerId = ownerId ?? "admin";
|
||||
|
||||
factory AlbumBuilder.ofId({
|
||||
required int albumId,
|
||||
DateTime? lastUpdated,
|
||||
String? name,
|
||||
String? ownerId,
|
||||
}) =>
|
||||
AlbumBuilder(
|
||||
lastUpdated: lastUpdated,
|
||||
name: name,
|
||||
albumFilename: "test$albumId.nc_album.json",
|
||||
fileId: albumId,
|
||||
ownerId: ownerId,
|
||||
);
|
||||
|
||||
Album build() {
|
||||
final latestFileItem = items
|
||||
|
|
Loading…
Reference in a new issue