diff options
author | Bernhard Reiter <ockham@raz.or.at> | 2014-10-03 19:32:39 +0200 |
---|---|---|
committer | Bernhard Reiter <ockham@raz.or.at> | 2014-10-14 00:06:07 +0200 |
commit | 226d7233e17b114ac86d50900f4ee778f6192d7a (patch) | |
tree | 2bbcdbfb0a68687a4db8950c1643ba2216eac0b0 /tests | |
parent | 7e9baafc5341bda5b8b86700f90d896b43b85185 (diff) | |
download | nextcloud-server-226d7233e17b114ac86d50900f4ee778f6192d7a.tar.gz nextcloud-server-226d7233e17b114ac86d50900f4ee778f6192d7a.zip |
In Tags::rename($from, $to), check if there already is a tag named $to.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/tags.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/tags.php b/tests/lib/tags.php index 455b99120ab..2f7a1e817f8 100644 --- a/tests/lib/tags.php +++ b/tests/lib/tags.php @@ -150,8 +150,8 @@ class Test_Tags extends PHPUnit_Framework_TestCase { $this->assertTrue($tagger->rename('Wrok', 'Work')); $this->assertTrue($tagger->hasTag('Work')); $this->assertFalse($tagger->hastag('Wrok')); - $this->assertFalse($tagger->rename('Wrok', 'Work')); - + $this->assertFalse($tagger->rename('Wrok', 'Work')); // Rename non-existant tag. + $this->assertFalse($tagger->rename('Work', 'Family')); // Collide with existing tag. } public function testTagAs() { |