Skip to content

Commit

Permalink
Fixing failing test in fixture test case
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Sep 3, 2011
1 parent 89b1e54 commit 01f2699
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/Cake/Test/Case/Console/Command/Task/FixtureTaskTest.php
Expand Up @@ -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
Expand Down Expand Up @@ -185,9 +185,7 @@ function testImportRecordsNoEscaping() {
'schema' => 'Article',
'records' => false
));

$this->assertRegExp("/'body' => 'Body \"value\"'/", $result, 'Data has bad escaping');
$this->assertRegExp("/'bool' => 1/", $result);
}

/**
Expand Down Expand Up @@ -352,6 +350,7 @@ public function testRecordGenerationForBinaryAndFloat() {

$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);
Expand Down

0 comments on commit 01f2699

Please sign in to comment.