From 01f26995b6f16289d44c3da6719a8e7c7882b543 Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Sat, 3 Sep 2011 07:04:51 -0430 Subject: [PATCH] Fixing failing test in fixture test case --- lib/Cake/Test/Case/Console/Command/Task/FixtureTaskTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Test/Case/Console/Command/Task/FixtureTaskTest.php b/lib/Cake/Test/Case/Console/Command/Task/FixtureTaskTest.php index 9b04ffc83..818d75a2a 100644 --- a/lib/Cake/Test/Case/Console/Command/Task/FixtureTaskTest.php +++ b/lib/Cake/Test/Case/Console/Command/Task/FixtureTaskTest.php @@ -37,7 +37,7 @@ class FixtureTaskTest extends CakeTestCase { * * @var array */ - public $fixtures = array('core.article', 'core.comment', 'core.datatype', 'core.binary_test'); + public $fixtures = array('core.article', 'core.comment', 'core.datatype', 'core.binary_test', 'core.user'); /** * setUp method @@ -185,9 +185,7 @@ class FixtureTaskTest extends CakeTestCase { 'schema' => 'Article', 'records' => false )); - $this->assertRegExp("/'body' => 'Body \"value\"'/", $result, 'Data has bad escaping'); - $this->assertRegExp("/'bool' => 1/", $result); } /** @@ -352,6 +350,7 @@ class FixtureTaskTest extends CakeTestCase { $result = $this->Task->bake('Article', 'datatypes'); $this->assertPattern("/'float_field' => 1/", $result); + $this->assertRegExp("/'bool' => 1/", $result); $result = $this->Task->bake('Article', 'binary_tests'); $this->assertPattern("/'data' => 'Lorem ipsum dolor sit amet'/", $result);