forked from wallabag/wallabag
Add nbEntries to the API tags list response
So client will be able to do the same as in the web UI. Also remove empty `div` from the tags template.
This commit is contained in:
@ -20,14 +20,13 @@ class TagRestControllerTest extends WallabagApiTestCase
|
||||
$this->assertGreaterThan(0, $content);
|
||||
$this->assertArrayHasKey('id', $content[0]);
|
||||
$this->assertArrayHasKey('label', $content[0]);
|
||||
$this->assertArrayHasKey('nbEntries', $content[0]);
|
||||
|
||||
$tagLabels = array_map(function ($i) {
|
||||
return $i['label'];
|
||||
}, $content);
|
||||
|
||||
$this->assertNotContains($this->otherUserTagLabel, $tagLabels, 'There is a possible tag leak');
|
||||
|
||||
return end($content);
|
||||
}
|
||||
|
||||
public function testDeleteUserTag()
|
||||
|
||||
Reference in New Issue
Block a user