mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
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:
parent
3be28fc749
commit
5203397a6a
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue