+ // assign/remove label to article
+
+ $ret = $this->apiCall(['feed_id' => -4, 'view_mode' => 'adaptive'], "getHeadlines");
+ $this->assertInternalType('array', $ret['content'][0]);
+ $article_id = $ret['content'][0]['id'];
+
+ $ret = $this->apiCall(['article_ids' => $article_id,
+ 'label_id' => $label_feed_id, "assign" => "true"],
+ "setArticleLabel");
+
+ $ret = $this->apiCall(['article_id' => $article_id], "getArticle");
+ $this->assertContains($label_feed_id, $ret['content'][0]['labels'][0]);
+
+ $ret = $this->apiCall(['article_ids' => $article_id,
+ 'label_id' => $label_feed_id, "assign" => "false"],
+ "setArticleLabel");
+
+ $ret = $this->apiCall(['article_id' => $article_id], "getArticle");
+ $this->assertEmpty($ret['content'][0]['labels']);
+
+ // clean up and check