浏览代码

Use configShallow().

Mark Scherer 10 年之前
父节点
当前提交
dae322b670
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tests/TestCase/Model/Behavior/SluggedBehaviorTest.php

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

@@ -87,8 +87,8 @@ class SluggedBehaviorTest extends TestCase {
 	 * @return void
 	 */
 	public function testAddUniqueMultipleLabels() {
-		$this->articles->behaviors()->Slugged->config('label', ''); // Hack necessary right now to avoid title showing up twice
-		$this->articles->behaviors()->Slugged->config(['mode' => 'ascii', 'unique' => true, 'label' => ['title', 'long_title']]);
+		//$this->articles->behaviors()->Slugged->config('label', ''); // Hack necessary right now to avoid title showing up twice
+		$this->articles->behaviors()->Slugged->configShallow(['mode' => 'ascii', 'unique' => true, 'label' => ['title', 'long_title']]);
 
 		$entity = $this->_getEntity(null, null, ['long_title' => 'blae']);
 		$result = $this->articles->save($entity);