Skip to content

Commit

Permalink
Fixing skips in ControllerMergeVarsTest.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jun 25, 2010
1 parent e1bdf57 commit b3faa7f
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions cake/tests/cases/libs/controller/controller_merge_vars.test.php
Expand Up @@ -128,14 +128,6 @@ class MergePostsController extends MergeVarPluginAppController {
* @package cake.tests.cases.libs.controller
*/
class ControllerMergeVarsTest extends CakeTestCase {
/**
* Skips the case if APP_CONTROLLER_EXISTS is defined
*
* @return void
*/
function skip() {
$this->skipIf(defined('APP_CONTROLLER_EXISTS'), 'APP_CONTROLLER_EXISTS cannot run. %s');
}
/**
* end test
*
Expand All @@ -151,6 +143,8 @@ function endTest() {
* @return void
*/
function testComponentParamMergingNoDuplication() {
$this->skipIf(defined('APP_CONTROLLER_EXISTS'), "APP_CONTROLLER_EXISTS cannot run {$this->name}");

$Controller =& new MergeVariablesController();
$Controller->constructClasses();

Expand All @@ -164,6 +158,8 @@ function testComponentParamMergingNoDuplication() {
* @return void
*/
function testComponentMergingWithRedeclarations() {
$this->skipIf(defined('APP_CONTROLLER_EXISTS'), "APP_CONTROLLER_EXISTS cannot run {$this->name}");

$Controller =& new MergeVariablesController();
$Controller->components['MergeVar'] = array('remote', 'redirect' => true);
$Controller->constructClasses();
Expand All @@ -178,6 +174,8 @@ function testComponentMergingWithRedeclarations() {
* @return void
*/
function testHelperSettingMergingNoDuplication() {
$this->skipIf(defined('APP_CONTROLLER_EXISTS'), "APP_CONTROLLER_EXISTS cannot run {$this->name}");

$Controller =& new MergeVariablesController();
$Controller->constructClasses();

Expand All @@ -191,6 +189,8 @@ function testHelperSettingMergingNoDuplication() {
* @return void
*/
function testMergeVarsWithPlugin() {
$this->skipIf(defined('APP_CONTROLLER_EXISTS'), "APP_CONTROLLER_EXISTS cannot run {$this->name}");

$Controller =& new MergePostsController();
$Controller->components = array('Email' => array('ports' => 'open'));
$Controller->plugin = 'MergeVarPlugin';
Expand Down Expand Up @@ -228,6 +228,8 @@ function testMergeVarsWithPlugin() {
* @return void
*/
function testMergeVarsNotGreedy() {
$this->skipIf(defined('APP_CONTROLLER_EXISTS'), "APP_CONTROLLER_EXISTS cannot run {$this->name}");

$Controller =& new Controller();
$Controller->components = array();
$Controller->uses = array();
Expand Down

0 comments on commit b3faa7f

Please sign in to comment.