]> source.dussan.org Git - nextcloud-server.git/commitdiff
Test Tags::getFavorites().
authorBernhard Reiter <ockham@raz.or.at>
Mon, 6 Oct 2014 19:06:46 +0000 (21:06 +0200)
committerBernhard Reiter <ockham@raz.or.at>
Mon, 13 Oct 2014 22:06:07 +0000 (00:06 +0200)
tests/lib/tags.php

index 976b4b4fdc83182e077ae991e7d1d8021dfb31a1..3eba470a5098ee3243d3c4dc2654231361a01d70 100644 (file)
@@ -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());
        }
 
 }