mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
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:
parent
dbbe90c22c
commit
51250a4e5d
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue