Forcing SQL debug mode for model tests

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4688 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2007-03-27 02:22:35 +00:00
parent dbbe90c22c
commit 51250a4e5d

View file

@ -137,6 +137,16 @@
class ModelTest extends CakeTestCase {
var $fixtures = array( 'core.category', 'core.user', 'core.article', 'core.tag', 'core.articles_tag', 'core.comment', 'core.attachment' );
function start() {
parent::start();
Configure::write('debug', 2);
}
function end() {
parent::end();
Configure::write('debug', DEBUG);
}
function testIdentity() {
$this->model =& new Test();
$result = $this->model->name;