Adding error expectation to model_write test. Models using useTable = false, will still issue count queries to their datasources when exists() is called.

This commit is contained in:
Mark Story 2010-01-16 20:24:27 -05:00
parent 3be28fc749
commit 5203397a6a

View file

@ -2558,8 +2558,12 @@ class ModelWriteTest extends BaseModelTest {
$TestModel =& new TheVoid();
$this->assertFalse($TestModel->exists());
$TestModel->id = 5;
$this->expectError();
ob_start();
$this->assertFalse($TestModel->exists());
$output = ob_get_clean();
}
/**