Browse Source

Fix tests.

mscherer 6 years ago
parent
commit
393fd9918a
1 changed files with 2 additions and 6 deletions
  1. 2 6
      tests/TestCase/Model/Behavior/SluggedBehaviorTest.php

+ 2 - 6
tests/TestCase/Model/Behavior/SluggedBehaviorTest.php

@@ -266,15 +266,13 @@ class SluggedBehaviorTest extends TestCase {
 	 */
 	 */
 	public function testLengthRestrictionNoLimit() {
 	public function testLengthRestrictionNoLimit() {
 		$this->articles->behaviors()->Slugged->setConfig(['length' => 0, 'label' => 'long_title', 'field' => 'long_slug']);
 		$this->articles->behaviors()->Slugged->setConfig(['length' => 0, 'label' => 'long_title', 'field' => 'long_slug']);
-		$entity = $this->_getEntity(str_repeat('foo bar ', 18), 'long_title');
+		$entity = $this->_getEntity(str_repeat('foo bar ', 31), 'long_title');
 
 
 		$result = $this->articles->save($entity);
 		$result = $this->articles->save($entity);
-		$this->assertEquals(143, strlen($result->get('long_slug')));
+		$this->assertEquals(247, strlen($result->get('long_slug')));
 	}
 	}
 
 
 	/**
 	/**
-	 * SluggedBehaviorTest::testResetSlugs()
-	 *
 	 * @return void
 	 * @return void
 	 */
 	 */
 	public function testResetSlugs() {
 	public function testResetSlugs() {
@@ -313,8 +311,6 @@ class SluggedBehaviorTest extends TestCase {
 	}
 	}
 
 
 	/**
 	/**
-	 * TestDuplicateWithLengthRestriction method
-	 *
 	 * If there's a length restriction - ensure it's respected by the unique slug routine
 	 * If there's a length restriction - ensure it's respected by the unique slug routine
 	 *
 	 *
 	 * @return void
 	 * @return void