Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jan 4, 2015
1 parent fe545c5 commit 4efaa89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/TestCase/Core/ConfigureTest.php
Expand Up @@ -503,7 +503,7 @@ public function testDump()
{
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);
Expand All @@ -523,7 +523,7 @@ public function testDumpPartial()
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);
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/View/Helper/FormHelperTest.php
Expand Up @@ -205,7 +205,7 @@ public function tearDown()
public function testConstructTemplatesFile()
{
$helper = new FormHelper($this->View, [
'templates' => 'htmlhelper_tags.php'
'templates' => 'htmlhelper_tags'
]);
$result = $helper->input('name');
$this->assertContains('<input', $result);
Expand Down Expand Up @@ -474,7 +474,7 @@ public function testCreateTemplatesArray()
public function testCreateTemplatesFile()
{
$result = $this->Form->create($this->article, [
'templates' => 'htmlhelper_tags.php',
'templates' => 'htmlhelper_tags',
]);
$expected = [
'start form',
Expand Down

0 comments on commit 4efaa89

Please sign in to comment.