Browse Source

Also test negative read marks

microsub
J. King 7 years ago
parent
commit
99ae274ef8
  1. 3
      sql/SQLite3/0.sql
  2. 4
      tests/lib/Database/SeriesSubscription.php

3
sql/SQLite3/0.sql

@ -91,7 +91,8 @@ create table arsse_marks(
owner TEXT not null references arsse_users(id) on delete cascade on update cascade,
read 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)

4
tests/lib/Database/SeriesSubscription.php

@ -76,7 +76,7 @@ trait SeriesSubscription {
[8,8,"jane.doe@example.com",true,false],
[9, 1,"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",
'title' => "Ook",
'folder' => 2,
'unread' => 1,
'unread' => 2,
],
];
$this->assertResult($exp, Data::$db->subscriptionList($user));

Loading…
Cancel
Save