Skip to content

Commit

Permalink
fixing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Apr 24, 2012
1 parent 6353558 commit acd06d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Cake/Test/Case/Console/Command/Task/TemplateTaskTest.php
Expand Up @@ -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']);
}

/**
Expand Down

0 comments on commit acd06d6

Please sign in to comment.