changing simpleTest test to use app import

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7720 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
AD7six 2008-10-09 17:23:17 +00:00
parent 42241b2b27
commit ad059df35d

View file

@ -459,7 +459,7 @@ class Shell extends Object {
* @access protected
*/
function _checkUnitTest() {
if (is_dir(VENDORS.'simpletest') || is_dir(ROOT.DS.APP_DIR.DS.'vendors'.DS.'simpletest')) {
if (App::import('vendor', 'simpletest/simpletest')) {
return true;
}
$unitTest = $this->in('Cake test suite not installed. Do you want to bake unit test files anyway?', array('y','n'), 'y');