]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
rename three to thr to make the code look nicer
authorChristian Weiske <cweiske@cweiske.de>
Wed, 23 Mar 2011 18:00:25 +0000 (19:00 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Wed, 23 Mar 2011 18:00:25 +0000 (19:00 +0100)
tests/Bookmark2TagTest.php

index 8ee3fc1eb15500d37f3d66e1898fe6280d7eb9d6..a83a8262c163d37b2a1d2c09febac78b401d35ca 100644 (file)
@@ -108,11 +108,11 @@ class Bookmark2TagTest extends TestBase
 
 
     /**
-     * Test getTagsForBookmark() when the bookmark has three tags
+     * Test getTagsForBookmark() when the bookmark has thr tags
      *
      * @return void
      */
-    public function testGetTagsForBookmarkThree()
+    public function testGetTagsForBookmarkThr()
     {
         $this->addBookmark(null, null, 0, array('forz', 'barz'));
 
@@ -235,7 +235,7 @@ class Bookmark2TagTest extends TestBase
     {
         $user = $this->addUser();
         $this->addTagBookmark($user, array('one', 'two'));
-        $this->addTagBookmark($user, array('one', 'three'));
+        $this->addTagBookmark($user, array('one', 'thr'));
         $this->addTagBookmark($user, array('one', 'two'));
 
         $arTags = $this->b2ts->getPopularTags();
@@ -248,7 +248,7 @@ class Bookmark2TagTest extends TestBase
             array(
                 array('tag' => 'one', 'bCount' => '3'),
                 array('tag' => 'two', 'bCount' => '2'),
-                array('tag' => 'three', 'bCount' => '1')
+                array('tag' => 'thr', 'bCount' => '1')
             ),
             $arTags
         );
@@ -263,7 +263,7 @@ class Bookmark2TagTest extends TestBase
     {
         $user = $this->addUser();
         $this->addTagBookmark($user, array('one', 'two'));
-        $this->addTagBookmark($user, array('one', 'three'));
+        $this->addTagBookmark($user, array('one', 'thr'));
         $this->addTagBookmark($user, array('one', 'two'));
 
         $arTags = $this->b2ts->getPopularTags();
@@ -301,16 +301,16 @@ class Bookmark2TagTest extends TestBase
     {
         $user = $this->addUser();
         $this->addTagBookmark($user, array('one', 'two'), 'today');
-        $this->addTagBookmark($user, array('one', 'three'), 'today');
+        $this->addTagBookmark($user, array('one', 'thr'), 'today');
         $this->addTagBookmark($user, array('one', 'two'), '-1 day 1 hour');
-        $this->addTagBookmark($user, array('one', 'three'), '-3 days 1 hour');
+        $this->addTagBookmark($user, array('one', 'thr'), '-3 days 1 hour');
 
         $arTags = $this->b2ts->getPopularTags(null, 10, null, 1);
         $this->assertInternalType('array', $arTags);
         $this->assertEquals(3, count($arTags));
         $this->assertContains(array('tag' => 'one', 'bCount' => '2'), $arTags);
         $this->assertContains(array('tag' => 'two', 'bCount' => '1'), $arTags);
-        $this->assertContains(array('tag' => 'three', 'bCount' => '1'), $arTags);
+        $this->assertContains(array('tag' => 'thr', 'bCount' => '1'), $arTags);
 
         $arTags = $this->b2ts->getPopularTags(null, 10, null, 2);
         $this->assertInternalType('array', $arTags);
@@ -319,7 +319,7 @@ class Bookmark2TagTest extends TestBase
             array(
                 array('tag' => 'one', 'bCount' => '3'),
                 array('tag' => 'two', 'bCount' => '2'),
-                array('tag' => 'three', 'bCount' => '1'),
+                array('tag' => 'thr', 'bCount' => '1'),
             ),
             $arTags
         );
@@ -329,7 +329,7 @@ class Bookmark2TagTest extends TestBase
         $this->assertEquals(3, count($arTags));
         $this->assertContains(array('tag' => 'one', 'bCount' => '4'), $arTags);
         $this->assertContains(array('tag' => 'two', 'bCount' => '2'), $arTags);
-        $this->assertContains(array('tag' => 'three', 'bCount' => '2'), $arTags);
+        $this->assertContains(array('tag' => 'thr', 'bCount' => '2'), $arTags);
     }
 
 
@@ -369,7 +369,7 @@ class Bookmark2TagTest extends TestBase
         $this->addTagBookmark($user1, array('one'));
         $this->addTagBookmark($user2, array('one', 'two'));
         $this->addTagBookmark($user2, array('two'));
-        $this->addTagBookmark($user3, array('one', 'three'));
+        $this->addTagBookmark($user3, array('one', 'thr'));
 
         $arTags = $this->b2ts->getPopularTags($user1);
         $this->assertEquals(1, count($arTags));
@@ -394,7 +394,7 @@ class Bookmark2TagTest extends TestBase
         $this->assertEquals(3, count($arTags));
         $this->assertContains(array('tag' => 'one', 'bCount' => '2'), $arTags);
         $this->assertContains(array('tag' => 'two', 'bCount' => '2'), $arTags);
-        $this->assertContains(array('tag' => 'three', 'bCount' => '1'), $arTags);
+        $this->assertContains(array('tag' => 'thr', 'bCount' => '1'), $arTags);
     }
 
     /**
@@ -405,7 +405,7 @@ class Bookmark2TagTest extends TestBase
         $user1 = $this->addUser();
         $this->addBookmark($user1, null, 0, array('one'));
         $this->addBookmark($user1, null, 1, array('one', 'two'));
-        $this->addBookmark($user1, null, 2, array('three'));
+        $this->addBookmark($user1, null, 2, array('thr'));
 
         $arTags = $this->b2ts->getPopularTags();
         $this->assertEquals(1, count($arTags));
@@ -419,7 +419,7 @@ class Bookmark2TagTest extends TestBase
         $user1 = $this->addUser();
         $this->addBookmark($user1, null, 0, array('one'));
         $this->addBookmark($user1, null, 1, array('one', 'two'));
-        $this->addBookmark($user1, null, 2, array('three'));
+        $this->addBookmark($user1, null, 2, array('thr'));
 
         $arTags = $this->b2ts->getPopularTags($user1);
         $this->assertEquals(1, count($arTags));
@@ -439,13 +439,13 @@ class Bookmark2TagTest extends TestBase
         $user1 = $this->addUser();
         $this->addBookmark($user1, null, 0, array('one'));
         $this->addBookmark($user1, null, 1, array('one', 'two'));
-        $this->addBookmark($user1, null, 2, array('three'));
+        $this->addBookmark($user1, null, 2, array('thr'));
 
         $arTags = $this->b2ts->getPopularTags($user1, 10, $user1);
         $this->assertEquals(3, count($arTags));
         $this->assertContains(array('tag' => 'one', 'bCount' => '2'), $arTags);
         $this->assertContains(array('tag' => 'two', 'bCount' => '1'), $arTags);
-        $this->assertContains(array('tag' => 'three', 'bCount' => '1'), $arTags);
+        $this->assertContains(array('tag' => 'thr', 'bCount' => '1'), $arTags);
     }
 }