Skip to content

Commit

Permalink
Fixing the path used to create fixtures.
Browse files Browse the repository at this point in the history
  • Loading branch information
renan committed May 30, 2011
1 parent f55fa4d commit d0af5c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Console/Command/Task/FixtureTask.php
Expand Up @@ -57,7 +57,7 @@ class FixtureTask extends BakeTask {
*/
public function __construct($stdout = null, $stderr = null, $stdin = null) {
parent::__construct($stdout, $stderr, $stdin);
$this->path = APP . 'tests' . DS . 'Fixture' . DS;
$this->path = APP . 'Test' . DS . 'Fixture' . DS;
}

/**
Expand Down Expand Up @@ -267,7 +267,7 @@ public function generateFixtureFile($model, $otherVars) {
public function getPath() {
$path = $this->path;
if (isset($this->plugin)) {
$path = $this->_pluginPath($this->plugin) . 'tests' . DS . 'Fixture' . DS;
$path = $this->_pluginPath($this->plugin) . 'Test' . DS . 'Fixture' . DS;
}
return $path;
}
Expand Down
4 changes: 2 additions & 2 deletions lib/Cake/Test/Case/Console/Command/Task/FixtureTaskTest.php
Expand Up @@ -83,7 +83,7 @@ public function testConstruct() {
$in = $this->getMock('ConsoleInput', array(), array(), '', false);

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

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

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

0 comments on commit d0af5c7

Please sign in to comment.