Browse Source

correct max limit

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

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

@@ -18158,7 +18158,7 @@ class SluggedBehaviorTest extends CakeTestCase {
 	 */
 	 */
 	public function testLengthRestrictionAutoDetect() {
 	public function testLengthRestrictionAutoDetect() {
 		$this->Model->create();
 		$this->Model->create();
-		$result = $this->Model->save(array('title' => str_repeat('foo bar ', 81)));
+		$result = $this->Model->save(array('title' => str_repeat('foo bar ', 31)));
 		$this->assertEquals(245, strlen($result['SluggedArticle']['slug']));
 		$this->assertEquals(245, strlen($result['SluggedArticle']['slug']));
 	}
 	}
 
 
@@ -18183,7 +18183,7 @@ class SluggedBehaviorTest extends CakeTestCase {
 	public function testLengthRestrictionManual() {
 	public function testLengthRestrictionManual() {
 		$this->Model->Behaviors->load('Tools.Slugged', array('length' => 155));
 		$this->Model->Behaviors->load('Tools.Slugged', array('length' => 155));
 		$this->Model->create();
 		$this->Model->create();
-		$result = $this->Model->save(array('title' => str_repeat('foo bar ', 81)));
+		$result = $this->Model->save(array('title' => str_repeat('foo bar ', 31)));
 		$this->assertEquals(155, strlen($result['SluggedArticle']['slug']));
 		$this->assertEquals(155, strlen($result['SluggedArticle']['slug']));
 	}
 	}