mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 14:56:20 +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 {
|
class AlbumBuilder {
|
||||||
AlbumBuilder({
|
AlbumBuilder({
|
||||||
DateTime? lastUpdated,
|
DateTime? lastUpdated,
|
||||||
this.name = "test",
|
String? name,
|
||||||
this.albumFilename = "test1.json",
|
this.albumFilename = "test0.nc_album.json",
|
||||||
this.fileId = 0,
|
this.fileId = 0,
|
||||||
this.ownerId = "admin",
|
String? ownerId,
|
||||||
}) : lastUpdated = lastUpdated ?? DateTime.utc(2020, 1, 2, 3, 4, 5);
|
}) : 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() {
|
Album build() {
|
||||||
final latestFileItem = items
|
final latestFileItem = items
|
||||||
|
|
Loading…
Reference in a new issue