]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add test for renaming non-existing category.
authorThomas Tanghus <thomas@tanghus.net>
Mon, 20 May 2013 11:57:18 +0000 (13:57 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Mon, 20 May 2013 11:57:18 +0000 (13:57 +0200)
tests/lib/vcategories.php

index a8af6ae9f7a29ea79039aa49f3eee871464bdd61..df5f600f20da3a479daacea277dbb8fe953498f9 100644 (file)
@@ -88,6 +88,7 @@ class Test_VCategories extends PHPUnit_Framework_TestCase {
                $this->assertTrue($catmgr->rename('Wrok', 'Work'));
                $this->assertTrue($catmgr->hasCategory('Work'));
                $this->assertFalse($catmgr->hasCategory('Wrok'));
+               $this->assertFalse($catmgr->rename('Wrok', 'Work'));
 
        }