Hello all!

I'm thinking about on how to test custom queries in a model.

Suppose I have something like this in a model:

function doSomethingWithCustomQuery() {
  return $this->query('SELECT * FROM table');
}

How can I test this using the fixtures and all?
My main problem is how to detect the test environment
so I can, for exemple, attach 'test_suite' to the table name,
so the query will run on the test table.

How can I do this?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to