1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2025-01-09 09:22:40 +00:00

Also test negative read marks

This commit is contained in:
J. King 2017-05-16 22:24:36 -04:00
parent ef3cb4fa54
commit 99ae274ef8
2 changed files with 4 additions and 3 deletions

View file

@ -91,7 +91,8 @@ create table arsse_marks(
owner TEXT not null references arsse_users(id) on delete cascade on update cascade, owner TEXT not null references arsse_users(id) on delete cascade on update cascade,
read boolean not null default 0, read boolean not null default 0,
starred boolean not null default 0, starred boolean not null default 0,
modified datetime not null default CURRENT_TIMESTAMP modified datetime not null default CURRENT_TIMESTAMP,
unique(article,owner)
); );
-- IDs for specific editions of articles (required for at least NextCloud News) -- IDs for specific editions of articles (required for at least NextCloud News)

View file

@ -76,7 +76,7 @@ trait SeriesSubscription {
[8,8,"jane.doe@example.com",true,false], [8,8,"jane.doe@example.com",true,false],
[9, 1,"john.doe@example.com",true,false], [9, 1,"john.doe@example.com",true,false],
[10,7,"john.doe@example.com",true,false], [10,7,"john.doe@example.com",true,false],
[11,8,"john.doe@example.com",true,false], [11,8,"john.doe@example.com",false,false],
] ]
], ],
]; ];
@ -199,7 +199,7 @@ trait SeriesSubscription {
'url' => "http://example.com/feed3", 'url' => "http://example.com/feed3",
'title' => "Ook", 'title' => "Ook",
'folder' => 2, 'folder' => 2,
'unread' => 1, 'unread' => 2,
], ],
]; ];
$this->assertResult($exp, Data::$db->subscriptionList($user)); $this->assertResult($exp, Data::$db->subscriptionList($user));