diff options
author | Bernhard Reiter <ockham@raz.or.at> | 2014-10-06 21:06:46 +0200 |
---|---|---|
committer | Bernhard Reiter <ockham@raz.or.at> | 2014-10-14 00:06:07 +0200 |
commit | a67803fb5df02e7e8924d245d8609aa746a59889 (patch) | |
tree | 6e5bb1e1bf068331aca433cfb631f7ac468c3fb8 /tests | |
parent | b33cb0e342cd379bfd5601ce8adbae1b69a9e8e4 (diff) | |
download | nextcloud-server-a67803fb5df02e7e8924d245d8609aa746a59889.tar.gz nextcloud-server-a67803fb5df02e7e8924d245d8609aa746a59889.zip |
Test Tags::getFavorites().
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/tags.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lib/tags.php b/tests/lib/tags.php index 976b4b4fdc8..3eba470a509 100644 --- a/tests/lib/tags.php +++ b/tests/lib/tags.php @@ -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()); } } |