mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Fixing failing tests.
This commit is contained in:
parent
18acc65fe1
commit
8dcb7fd9cb
1 changed files with 3 additions and 3 deletions
|
@ -141,9 +141,9 @@ class FixtureTaskTest extends CakeTestCase {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function testImportOptionsAlternateConnection() {
|
function testImportOptionsAlternateConnection() {
|
||||||
$this->Task->connection = 'test';
|
$this->Task->connection = 'test_suite';
|
||||||
$result = $this->Task->bake('Article', false, array('schema' => 'Article'));
|
$result = $this->Task->bake('Article', false, array('schema' => 'Article'));
|
||||||
$this->assertPattern("/'connection' => 'test'/", $result);
|
$this->assertPattern("/'connection' => 'test_suite'/", $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -351,7 +351,7 @@ class FixtureTaskTest extends CakeTestCase {
|
||||||
$this->Task->expectAt(0, 'createFile', array($filename, new PatternExpectation('/Article/')));
|
$this->Task->expectAt(0, 'createFile', array($filename, new PatternExpectation('/Article/')));
|
||||||
$result = $this->Task->generateFixtureFile('Article', array());
|
$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());
|
$result = $this->Task->generateFixtureFile('Article', array());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue