Skip to content

Commit 01f2699

Browse files
committed
Fixing failing test in fixture test case
1 parent 89b1e54 commit 01f2699

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/Cake/Test/Case/Console/Command/Task/FixtureTaskTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class FixtureTaskTest extends CakeTestCase {
3737
*
3838
* @var array
3939
*/
40-
public $fixtures = array('core.article', 'core.comment', 'core.datatype', 'core.binary_test');
40+
public $fixtures = array('core.article', 'core.comment', 'core.datatype', 'core.binary_test', 'core.user');
4141

4242
/**
4343
* setUp method
@@ -185,9 +185,7 @@ function testImportRecordsNoEscaping() {
185185
'schema' => 'Article',
186186
'records' => false
187187
));
188-
189188
$this->assertRegExp("/'body' => 'Body \"value\"'/", $result, 'Data has bad escaping');
190-
$this->assertRegExp("/'bool' => 1/", $result);
191189
}
192190

193191
/**
@@ -352,6 +350,7 @@ public function testRecordGenerationForBinaryAndFloat() {
352350

353351
$result = $this->Task->bake('Article', 'datatypes');
354352
$this->assertPattern("/'float_field' => 1/", $result);
353+
$this->assertRegExp("/'bool' => 1/", $result);
355354

356355
$result = $this->Task->bake('Article', 'binary_tests');
357356
$this->assertPattern("/'data' => 'Lorem ipsum dolor sit amet'/", $result);

0 commit comments

Comments
 (0)