Skip to content

Commit

Permalink
Removing constant checks, they aren't used anymore.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 21, 2010
1 parent 8e1f7cc commit 4c0e69b
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 22 deletions.
Expand Up @@ -17,9 +17,7 @@
* @since CakePHP(tm) v 1.2.0
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) {
define('CAKEPHP_UNIT_TEST_EXECUTION', 1);
}

require_once LIBS.'model'.DS.'model.php';
require_once LIBS.'model'.DS.'datasources'.DS.'datasource.php';
require_once LIBS.'model'.DS.'datasources'.DS.'dbo_source.php';
Expand Down
Expand Up @@ -17,9 +17,7 @@
* @since CakePHP(tm) v 1.2.0
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) {
define('CAKEPHP_UNIT_TEST_EXECUTION', 1);
}

App::import('Core', array('Model', 'DataSource', 'DboSource', 'DboMysqli'));

/**
Expand Down
Expand Up @@ -17,9 +17,7 @@
* @since CakePHP(tm) v 1.2.0
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) {
define('CAKEPHP_UNIT_TEST_EXECUTION', 1);
}

require_once LIBS . 'model' . DS . 'datasources' . DS . 'dbo_source.php';
require_once LIBS . 'model' . DS . 'datasources' . DS . 'dbo' . DS . 'dbo_oracle.php';

Expand Down
4 changes: 1 addition & 3 deletions cake/tests/cases/libs/model/datasources/dbo_source.test.php
Expand Up @@ -17,9 +17,7 @@
* @since CakePHP(tm) v 1.2.0.4206
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) {
define('CAKEPHP_UNIT_TEST_EXECUTION', 1);
}

App::import('Model', array('Model', 'DataSource', 'DboSource', 'DboMysql', 'App'));
require_once dirname(dirname(__FILE__)) . DS . 'models.php';

Expand Down
3 changes: 0 additions & 3 deletions cake/tests/cases/libs/model/models.php
Expand Up @@ -19,9 +19,6 @@
* @since CakePHP(tm) v 1.2.0.6464
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) {
define('CAKEPHP_UNIT_TEST_EXECUTION', 1);
}

PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'DEFAULT');

Expand Down
7 changes: 0 additions & 7 deletions cake/tests/cases/libs/view/media.test.php
Expand Up @@ -19,13 +19,6 @@
*/
App::import('Core', array('Media', 'Controller', 'CakeResponse'));

if (!class_exists('ErrorHandler')) {
App::import('Core', array('Error'));
}
if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) {
define('CAKEPHP_UNIT_TEST_EXECUTION', 1);
}

/**
* MediaViewTest class
*
Expand Down

0 comments on commit 4c0e69b

Please sign in to comment.