summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-06-15 20:42:41 -0400
committerFrederic Guillot <fred@kanboard.net>2015-06-15 20:42:41 -0400
commit56d5b96fc08fe69e3991b7909798b1db0ea5097b (patch)
tree8ed665f7507c81f9aec1f0cd5b7ccc97a4c882c4 /tests
parentb96e6f82c8fa758b52790bdcf6a9a856b606fed6 (diff)
Remove truncate helper and use css instead
Diffstat (limited to 'tests')
-rw-r--r--tests/units/TextHelperTest.php10
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/units/TextHelperTest.php b/tests/units/TextHelperTest.php
index 01652d5c..95c83e57 100644
--- a/tests/units/TextHelperTest.php
+++ b/tests/units/TextHelperTest.php
@@ -39,16 +39,6 @@ class TextHelperTest extends Base
$this->assertEquals('33.71k', $h->bytes(34520));
}
- public function testTruncate()
- {
- $h = new Text($this->container);
-
- $this->assertEquals('abc', $h->truncate('abc'));
- $this->assertEquals(str_repeat('a', 85).' [...]', $h->truncate(str_repeat('a', 200)));
-
- $this->assertEquals('Настольная рекл [...]', $h->truncate('Настольная реклама в фудкорте ГЧ', 15));
- }
-
public function testContains()
{
$h = new Text($this->container);