Hi,

I've got a problem with a unit test retrieving REAL data, where I need
to be using fixture data.  I'll explain by way of example.

- Model Widgets has a method abc().

- Widget->abc() retrieves data from another model, Shapes.  The 2
models are NOT joined by any table relationships.  The Shapes model is
invoked by calling App::import('Model','Shapes').

- Fixtures exist for both the Widget and Shape models.  Both fixtures
are included at the top of the Widget test case class.

- When I run unit tests on Widget->abc(), it dutifully retrieves data
from the test tables created by the fixture.  However, when Widget->abc
() retrieves data from the Shapes model, that data comes from the live
database.  I know this because I can see all of the SQL queries being
executed.

I hope this all makes sense.  Any ideas?

Thanks
--~--~---------~--~----~------------~-------~--~----~
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