Skip to content

Commit d0af5c7

Browse files
committed
Fixing the path used to create fixtures.
1 parent f55fa4d commit d0af5c7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/Cake/Console/Command/Task/FixtureTask.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class FixtureTask extends BakeTask {
5757
*/
5858
public function __construct($stdout = null, $stderr = null, $stdin = null) {
5959
parent::__construct($stdout, $stderr, $stdin);
60-
$this->path = APP . 'tests' . DS . 'Fixture' . DS;
60+
$this->path = APP . 'Test' . DS . 'Fixture' . DS;
6161
}
6262

6363
/**
@@ -267,7 +267,7 @@ public function generateFixtureFile($model, $otherVars) {
267267
public function getPath() {
268268
$path = $this->path;
269269
if (isset($this->plugin)) {
270-
$path = $this->_pluginPath($this->plugin) . 'tests' . DS . 'Fixture' . DS;
270+
$path = $this->_pluginPath($this->plugin) . 'Test' . DS . 'Fixture' . DS;
271271
}
272272
return $path;
273273
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function testConstruct() {
8383
$in = $this->getMock('ConsoleInput', array(), array(), '', false);
8484

8585
$Task = new FixtureTask($out, $out, $in);
86-
$this->assertEqual($Task->path, APP . 'tests' . DS . 'Fixture' . DS);
86+
$this->assertEqual($Task->path, APP . 'Test' . DS . 'Fixture' . DS);
8787
}
8888

8989
/**
@@ -362,7 +362,7 @@ public function testGeneratePluginFixtureFile() {
362362
$this->Task->connection = 'test';
363363
$this->Task->path = '/my/path/';
364364
$this->Task->plugin = 'TestFixture';
365-
$filename = APP . 'Plugin' . DS . 'TestFixture' . DS . 'tests' . DS . 'Fixture' . DS . 'ArticleFixture.php';
365+
$filename = APP . 'Plugin' . DS . 'TestFixture' . DS . 'Test' . DS . 'Fixture' . DS . 'ArticleFixture.php';
366366

367367
//fake plugin path
368368
CakePlugin::load('TestFixture', array('path' => APP . 'Plugin' . DS . 'TestFixture' . DS));

0 commit comments

Comments
 (0)