Browse Source

Fix tests.

ADmad 11 years ago
parent
commit
4efaa89ad3

+ 2 - 2
tests/TestCase/Core/ConfigureTest.php

@@ -503,7 +503,7 @@ class ConfigureTest extends TestCase
     {
         Configure::config('test_Engine', new PhpConfig(TMP));
 
-        $result = Configure::dump('config_test.php', 'test_Engine');
+        $result = Configure::dump('config_test', 'test_Engine');
         $this->assertTrue($result > 0);
         $result = file_get_contents(TMP . 'config_test.php');
         $this->assertContains('<?php', $result);
@@ -523,7 +523,7 @@ class ConfigureTest extends TestCase
         Configure::config('test_Engine', new PhpConfig(TMP));
         Configure::write('Error', ['test' => 'value']);
 
-        $result = Configure::dump('config_test.php', 'test_Engine', ['Error']);
+        $result = Configure::dump('config_test', 'test_Engine', ['Error']);
         $this->assertTrue($result > 0);
         $result = file_get_contents(TMP . 'config_test.php');
         $this->assertContains('<?php', $result);

+ 2 - 2
tests/TestCase/View/Helper/FormHelperTest.php

@@ -205,7 +205,7 @@ class FormHelperTest extends TestCase
     public function testConstructTemplatesFile()
     {
         $helper = new FormHelper($this->View, [
-            'templates' => 'htmlhelper_tags.php'
+            'templates' => 'htmlhelper_tags'
         ]);
         $result = $helper->input('name');
         $this->assertContains('<input', $result);
@@ -474,7 +474,7 @@ class FormHelperTest extends TestCase
     public function testCreateTemplatesFile()
     {
         $result = $this->Form->create($this->article, [
-            'templates' => 'htmlhelper_tags.php',
+            'templates' => 'htmlhelper_tags',
         ]);
         $expected = [
             'start form',