Is this the correct use of $cacheQueries?
<snip>
function testGetContents()
{
....
....
$cart = $this->model->getContents($this->validQuoteId);
......
.....
}
function testUpdateContents()
{
$data = "">
$this->assertTrue($this->model->updateContents($this->validQuoteId, $data));
$this->model->cacheQueries = false;
$cart = $this->model->getContents($this->validQuoteId);
$this->model->cacheQueries = true;
........
.........
}
</snip>
This is a snippet from a test-file. In the first test method there is a call to getContents().
This seems to affect the call to getContents() in the second test method (as they are called in succession within SimpleTest).
What if I just left the cacheQueries set to false?
Would this affect my queries outside of the testfile?
What if I set cacheQueries = false in my setUp() method and set cacheQueries = true in my tearDown()?
Would this be better?
Any help will be appreciated.
Cheers,
Sonic
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---
