Permalink
Browse files

fixing test case

  • Loading branch information...
1 parent 6353558 commit acd06d64991a808859e82c1db06549ca86996c93 @dereuromark dereuromark committed Apr 24, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Cake/Test/Case/Console/Command/Task/TemplateTaskTest.php
@@ -107,15 +107,15 @@ public function testGetThemePath() {
$result = $this->Task->getThemePath();
$this->assertEquals($defaultTheme, $result);
- $this->Task->templatePaths = array('default' => $defaultTheme, 'other' => '/some/path');
+ $this->Task->templatePaths = array('other' => '/some/path', 'default' => $defaultTheme);
$this->Task->params['theme'] = 'other';
$result = $this->Task->getThemePath();
$this->assertEquals('/some/path', $result);
$this->Task->params = array();
$result = $this->Task->getThemePath();
- $this->assertEquals($defaultTheme, $result);
- $this->assertEquals('default', $this->Task->params['theme']);
+ $this->assertEquals('/some/path', $result);
+ $this->assertEquals('other', $this->Task->params['theme']);
}
/**

0 comments on commit acd06d6

Please sign in to comment.