mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 18:50:47 -04:00
Test Tags::getFavorites().
This commit is contained in:
parent
b33cb0e342
commit
a67803fb5d
1 changed files with 2 additions and 0 deletions
|
|
@ -160,7 +160,9 @@ class Test_Tags extends PHPUnit_Framework_TestCase {
|
|||
public function testFavorite() {
|
||||
$tagger = $this->tagMgr->load($this->objectType);
|
||||
$this->assertTrue($tagger->addToFavorites(1));
|
||||
$this->assertEquals(array(1), $tagger->getFavorites());
|
||||
$this->assertTrue($tagger->removeFromFavorites(1));
|
||||
$this->assertEquals(array(), $tagger->getFavorites());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue