euromark 11 years ago
parent
commit
49fd226f00
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Test/TestCase/Model/Behavior/SluggedBehaviorTest.php

+ 2 - 2
Test/TestCase/Model/Behavior/SluggedBehaviorTest.php

@@ -102,7 +102,7 @@ class SluggedBehaviorTest extends TestCase {
  */
 	public function testLengthRestrictionManual() {
 		$this->articles->addBehavior('Tools.Slugged', ['length' => 155]);
-		$entity = $this->_getEntity(str_repeat('foo bar ', 81));
+		$entity = $this->_getEntity(str_repeat('foo bar ', 31));
 
 		$result = $this->articles->save($entity);
 		$this->assertEquals(155, strlen($result->get('slug')));
@@ -115,7 +115,7 @@ class SluggedBehaviorTest extends TestCase {
  */
 	public function testLengthRestrictionAutoDetect() {
 		$this->articles->addBehavior('Tools.Slugged');
-		$entity = $this->_getEntity(str_repeat('foo bar ', 81));
+		$entity = $this->_getEntity(str_repeat('foo bar ', 31));
 
 		$result = $this->articles->save($entity);
 		$this->assertEquals(245, strlen($result->get('slug')));