Skip to content
Permalink
Browse files

Fixing failing tests.

  • Loading branch information...
markstory committed Aug 20, 2011
1 parent 18acc65 commit 8dcb7fd9cbbcdb3a4e41afc6aa58f3f41d2ffafa
Showing with 3 additions and 3 deletions.
  1. +3 −3 cake/tests/cases/console/libs/tasks/fixture.test.php
@@ -141,9 +141,9 @@ function testImportOptions() {
* @return void
*/
function testImportOptionsAlternateConnection() {
$this->Task->connection = 'test';
$this->Task->connection = 'test_suite';
$result = $this->Task->bake('Article', false, array('schema' => 'Article'));
$this->assertPattern("/'connection' => 'test'/", $result);
$this->assertPattern("/'connection' => 'test_suite'/", $result);
}
/**
@@ -351,7 +351,7 @@ function testGenerateFixtureFile() {
$this->Task->expectAt(0, 'createFile', array($filename, new PatternExpectation('/Article/')));
$result = $this->Task->generateFixtureFile('Article', array());
$this->Task->expectAt(1, 'createFile', array($filename, new PatternExpectation('/\<\?php(.*)\?\>/ms')));
$this->Task->expectAt(1, 'createFile', array($filename, new PatternExpectation('/\<\?php(.*)$/ms')));
$result = $this->Task->generateFixtureFile('Article', array());
}

0 comments on commit 8dcb7fd

Please sign in to comment.
You can’t perform that action at this time.