@ -18,12 +18,8 @@ trait SeriesArticle {
protected function setUpSeriesArticle(): void {
protected function setUpSeriesArticle(): void {
$this->data = [
$this->data = [
'arsse_users' => [
'arsse_users' => [
'columns' => [
'columns' => ["id", "password", "num"],
'id' => 'str',
'rows' => [
'password' => 'str',
'num' => 'int',
],
'rows' => [
["jane.doe@example.com", "", 1],
["jane.doe@example.com", "", 1],
["john.doe@example.com", "", 2],
["john.doe@example.com", "", 2],
["john.doe@example.org", "", 3],
["john.doe@example.org", "", 3],
@ -32,12 +28,8 @@ trait SeriesArticle {
],
],
],
],
'arsse_feeds' => [
'arsse_feeds' => [
'columns' => [
'columns' => ["id", "url", "title"],
'id' => "int",
'rows' => [
'url' => "str",
'title' => "str",
],
'rows' => [
[1,"http://example.com/1", "Feed 1"],
[1,"http://example.com/1", "Feed 1"],
[2,"http://example.com/2", "Feed 2"],
[2,"http://example.com/2", "Feed 2"],
[3,"http://example.com/3", "Feed 3"],
[3,"http://example.com/3", "Feed 3"],
@ -54,13 +46,8 @@ trait SeriesArticle {
],
],
],
],
'arsse_folders' => [
'arsse_folders' => [
'columns' => [
'columns' => ["id", "owner", "parent", "name"],
'id' => "int",
'rows' => [
'owner' => "str",
'parent' => "int",
'name' => "str",
],
'rows' => [
[1, "john.doe@example.com", null, "Technology"],
[1, "john.doe@example.com", null, "Technology"],
[2, "john.doe@example.com", 1, "Software"],
[2, "john.doe@example.com", 1, "Software"],
[3, "john.doe@example.com", 1, "Rocketry"],
[3, "john.doe@example.com", 1, "Rocketry"],
@ -73,12 +60,8 @@ trait SeriesArticle {
],
],
],
],
'arsse_tags' => [
'arsse_tags' => [
'columns' => [
'columns' => ["id", "owner", "name"],
'id' => "int",
'rows' => [
'owner' => "str",
'name' => "str",
],
'rows' => [
[1, "john.doe@example.com", "Technology"],
[1, "john.doe@example.com", "Technology"],
[2, "john.doe@example.com", "Software"],
[2, "john.doe@example.com", "Software"],
[3, "john.doe@example.com", "Rocketry"],
[3, "john.doe@example.com", "Rocketry"],
@ -90,39 +73,28 @@ trait SeriesArticle {
],
],
],
],
'arsse_subscriptions' => [
'arsse_subscriptions' => [
'columns' => [
'columns' => ["id", "owner", "feed", "folder", "title", "scrape"],
'id' => "int",
'rows' => [
'owner' => "str",
[1, "john.doe@example.com",1, null,"Subscription 1", 0],
'feed' => "int",
[2, "john.doe@example.com",2, null,null, 0],
'folder' => "int",
[3, "john.doe@example.com",3, 1,"Subscription 3", 0],
'title' => "str",
[4, "john.doe@example.com",4, 6,null, 0],
'scrape' => "bool",
[5, "john.doe@example.com",10, 5,"Subscription 5", 0],
],
[6, "jane.doe@example.com",1, null,null, 0],
'rows' => [
[7, "jane.doe@example.com",10,null,"Subscription 7", 0],
[1, "john.doe@example.com",1, null,"Subscription 1",0],
[8, "john.doe@example.org",11,null,null, 0],
[2, "john.doe@example.com",2, null,null,0],
[9, "john.doe@example.org",12,null,"Subscription 9", 0],
[3, "john.doe@example.com",3, 1,"Subscription 3",0],
[10,"john.doe@example.org",13,null,null, 0],
[4, "john.doe@example.com",4, 6,null,0],
[5, "john.doe@example.com",10, 5,"Subscription 5",0],
[6, "jane.doe@example.com",1, null,null,0],
[7, "jane.doe@example.com",10,null,"Subscription 7",0],
[8, "john.doe@example.org",11,null,null,0],
[9, "john.doe@example.org",12,null,"Subscription 9",0],
[10,"john.doe@example.org",13,null,null,0],
[11,"john.doe@example.net",10,null,"Subscription 11",0],
[11,"john.doe@example.net",10,null,"Subscription 11",0],
[12,"john.doe@example.net",2, 9,null,0],
[12,"john.doe@example.net",2, 9,null, 0],
[13,"john.doe@example.net",3, 8,"Subscription 13",0],
[13,"john.doe@example.net",3, 8,"Subscription 13",0],
[14,"john.doe@example.net",4, 7,null,0],
[14,"john.doe@example.net",4, 7,null, 0],
[15,"jill.doe@example.com",11,null,null,1],
[15,"jill.doe@example.com",11,null,null, 1],
],
],
],
],
'arsse_tag_members' => [
'arsse_tag_members' => [
'columns' => [
'columns' => ["tag", "subscription", "assigned"],
'tag' => "int",
'rows' => [
'subscription' => "int",
'assigned' => "bool",
],
'rows' => [
[1,3,1],
[1,3,1],
[1,4,1],
[1,4,1],
[2,4,1],
[2,4,1],
@ -137,20 +109,8 @@ trait SeriesArticle {
],
],
'arsse_articles' => [
'arsse_articles' => [
'columns' => [
'columns' => [
'id' => "int",
"id", "feed", "url", "title", "author", "published", "edited", "content", "guid",
'feed' => "int",
"url_title_hash", "url_content_hash", "title_content_hash", "modified", "content_scraped",
'url' => "str",
'title' => "str",
'author' => "str",
'published' => "datetime",
'edited' => "datetime",
'content' => "str",
'guid' => "str",
'url_title_hash' => "str",
'url_content_hash' => "str",
'title_content_hash' => "str",
'modified' => "datetime",
'content_scraped' => "str",
],
],
'rows' => [
'rows' => [
[1,1,null,"Title one", null,null,null,"First article", null,"","","","2000-01-01T00:00:00Z",null],
[1,1,null,"Title one", null,null,null,"First article", null,"","","","2000-01-01T00:00:00Z",null],
@ -181,12 +141,8 @@ trait SeriesArticle {
],
],
],
],
'arsse_enclosures' => [
'arsse_enclosures' => [
'columns' => [
'columns' => ["article", "url", "type"],
'article' => "int",
'rows' => [
'url' => "str",
'type' => "str",
],
'rows' => [
[102,"http://example.com/text","text/plain"],
[102,"http://example.com/text","text/plain"],
[103,"http://example.com/video","video/webm"],
[103,"http://example.com/video","video/webm"],
[104,"http://example.com/image","image/svg+xml"],
[104,"http://example.com/image","image/svg+xml"],
@ -195,11 +151,8 @@ trait SeriesArticle {
],
],
],
],
'arsse_editions' => [
'arsse_editions' => [
'columns' => [
'columns' => ["id", "article"],
'id' => "int",
'rows' => [
'article' => "int",
],
'rows' => [
[1,1],
[1,1],
[2,2],
[2,2],
[3,3],
[3,3],
@ -234,16 +187,8 @@ trait SeriesArticle {
],
],
],
],
'arsse_marks' => [
'arsse_marks' => [
'columns' => [
'columns' => ["subscription", "article", "read", "starred", "modified", "note", "hidden"],
'subscription' => "int",
'rows' => [
'article' => "int",
'read' => "bool",
'starred' => "bool",
'modified' => "datetime",
'note' => "str",
'hidden' => "bool",
],
'rows' => [
[1, 1,1,1,'2000-01-01 00:00:00','',0],
[1, 1,1,1,'2000-01-01 00:00:00','',0],
[5, 19,1,0,'2016-01-01 00:00:00','',0],
[5, 19,1,0,'2016-01-01 00:00:00','',0],
[5, 20,0,1,'2005-01-01 00:00:00','',0],
[5, 20,0,1,'2005-01-01 00:00:00','',0],
@ -263,24 +208,17 @@ trait SeriesArticle {
],
],
],
],
'arsse_categories' => [ // author-supplied categories
'arsse_categories' => [ // author-supplied categories
'columns' => [
'columns' => ["article", "name"],
'article' => "int",
'rows' => [
'name' => "str",
],
'rows' => [
[19,"Fascinating"],
[19,"Fascinating"],
[19,"Logical"],
[19,"Logical"],
[20,"Interesting"],
[20,"Interesting"],
[20,"Logical"],
[20,"Logical"],
],
],
],
],
'arsse_labels' => [
'arsse_labels' => [ // labels applied to articles
'columns' => [
'columns' => ["id", "owner", "name"],
'id' => "int",
'rows' => [
'owner' => "str",
'name' => "str",
],
'rows' => [
[1,"john.doe@example.com","Interesting"],
[1,"john.doe@example.com","Interesting"],
[2,"john.doe@example.com","Fascinating"],
[2,"john.doe@example.com","Fascinating"],
[3,"jane.doe@example.com","Boring"],
[3,"jane.doe@example.com","Boring"],
@ -288,14 +226,8 @@ trait SeriesArticle {
],
],
],
],
'arsse_label_members' => [
'arsse_label_members' => [
'columns' => [
'columns' => ["label", "article", "subscription", "assigned", "modified"],
'label' => "int",
'rows' => [
'article' => "int",
'subscription' => "int",
'assigned' => "bool",
'modified' => "datetime",
],
'rows' => [
[1, 1,1,1,'2000-01-01 00:00:00'],
[1, 1,1,1,'2000-01-01 00:00:00'],
[2, 1,1,1,'2000-01-01 00:00:00'],
[2, 1,1,1,'2000-01-01 00:00:00'],
[1,19,5,1,'2000-01-01 00:00:00'],
[1,19,5,1,'2000-01-01 00:00:00'],