Skip to content

Commit

Permalink
Fixing failing test and adding skip for test that will fail in a non-…
Browse files Browse the repository at this point in the history
…isolated case.
  • Loading branch information
markstory committed Nov 21, 2010
1 parent a729d29 commit cb657b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cake/tests/cases/console/shells/testsuite.test.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public function setUp() {
array('in', 'out', 'hr', 'help', 'error', 'err', '_stop', 'initialize', 'run', 'clear'),
array($out, $out, $in)
);
$this->Shell->OptionParser = $this->getMock('ConsoleOptionParser', array(), array(null, false));
}

/**
Expand All @@ -61,7 +62,7 @@ public function testAvailableWithEmptyList() {
$this->Shell->startup();
$this->Shell->args = array('unexistant-category');
$this->Shell->expects($this->at(0))->method('out')->with(__("No test cases available \n\n"));
$this->Shell->expects($this->once())->method('help');
$this->Shell->OptionParser->expects($this->once())->method('help');
$this->Shell->available();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ function testHelperSettingMergingNoDuplication() {
* @return void
*/
function testHelperOrderPrecedence() {
$this->skipIf(defined('APP_CONTROLLER_EXISTS'), "APP_CONTROLLER_EXISTS cannot run {$this->name}");

$Controller =& new MergeVariablesController();
$Controller->helpers = array('Custom', 'Foo' => array('something'));
$Controller->constructClasses();
Expand Down

0 comments on commit cb657b1

Please sign in to comment.