Re: Using test cases with model relationships throws error

2010-08-06 Thread generaltao
Hi, thanks for getting back to me. I definitely have all my models listed in the fixtures collection. What we just discovered after a lot of testing is that it had to do with $useTable being set to false. For some reason that just throws everything out of whack. If anybody gets this in the

Re: Using test cases with model relationships throws error

2010-08-05 Thread jharris
My best guess, without seeing your test case or fixtures, is that you need to add the fixture to your $fixtures var in your test case. i.e., class MenuItemTestCase extends CakeTestCase { var $fixtures = array('app.menu_item', 'app.alias'); } After doing that, they should load into the test

Using test cases with model relationships throws error

2010-08-04 Thread generaltao
Hi all, Having a strange problem with test cases here. We have two tables in question in this one example - Alias and MenuItem. - Alias belongsTo MenuItem - MenuItem hasMany Alias I am running model test cases on Alias itself. Problem is that if I define the MenuItem hasMany Alias relationship