# |
Jul 17th 2009, 16:41 |
techno-geek |
gravyface, lies: http://www.di.fm |
# |
Jul 17th 2009, 16:41 |
alkemann |
well passed midnight. so im headed home. laters or good weekend |
# |
Jul 17th 2009, 16:40 |
gravyface |
best intarweb radio station. dig it: http://www.wefunkradio.com/radio/ |
# |
Jul 17th 2009, 16:14 |
markstory |
) |
# |
Jul 17th 2009, 16:14 |
Phally |
markstory: again, dank u wel |
# |
Jul 17th 2009, 15:46 |
alkemann |
8 |
# |
Jul 17th 2009, 15:46 |
alkemann |
6 small cute asserts |
# |
Jul 17th 2009, 15:45 |
alkemann |
and here is the toil of the evening http://thechaw.com/bakery/commits/view/374171bf8107b30f00542273d60378b1ebc3a2e7 |
# |
Jul 17th 2009, 15:43 |
markstory |
however it still won't be able to find plugin fixtures. |
# |
Jul 17th 2009, 15:43 |
markstory |
it would be nice if bake just knew what fixtures were needed. |
# |
Jul 17th 2009, 15:43 |
markstory |
I'll take another look, because that is probably one of the most annoying things about the tests. |
# |
Jul 17th 2009, 15:43 |
markstory |
yeah. |
# |
Jul 17th 2009, 15:42 |
alkemann |
ill try to remember that. i just prefer to work with one thing at a time. i dont have all the models, so having all the fixtures didnt make sense |
# |
Jul 17th 2009, 15:42 |
markstory |
I can't remember why the models need to be baked first. Something to do with getting things out of the registry I think. |
# |
Jul 17th 2009, 15:41 |
markstory |
and then bake the tests, bake will include all the fixtures. |
# |
Jul 17th 2009, 15:41 |
markstory |
alkemann: if you bake all your models first, |
# |
Jul 17th 2009, 15:32 |
Phally |
haha |
# |
Jul 17th 2009, 15:31 |
alkemann |
Phally: getting cake to stop complaining about fixtures :) |
# |
Jul 17th 2009, 15:31 |
alkemann |
this is why in my talk at cakefest i encouraged doing tests during development, instead of after.. then it's just a chore |
# |
Jul 17th 2009, 15:30 |
Phally |
what was the problem? |
# |
Jul 17th 2009, 15:30 |
Phally |
\o/ |
# |
Jul 17th 2009, 15:30 |
alkemann |
omg. that long to get what i already knew : 6 green passes |
# |
Jul 17th 2009, 15:30 |
Phally |
plugin.users.group |
# |
Jul 17th 2009, 15:30 |
markstory |
plus all the fixtures related to those models. |
# |
Jul 17th 2009, 15:29 |
markstory |
so you need app.article, and plugin.users.user in your fixtures |
# |
Jul 17th 2009, 15:29 |
Phally |
hmm nothing wrong with that |
# |
Jul 17th 2009, 15:27 |
alkemann |
'User' => array('className' => 'Users.User', |
# |
Jul 17th 2009, 15:27 |
Phally |
do you have belongsTo User or belongsTo Users.User? |
# |
Jul 17th 2009, 15:26 |
alkemann |
ya |
# |
Jul 17th 2009, 15:26 |
Phally |
alkemann: err i meant the one which belongsTo User (Article) probably |
# |
Jul 17th 2009, 15:25 |
alkemann |
habtm Article |
# |
Jul 17th 2009, 15:25 |
Phally |
alkemann: what association do you have on Tag? |
# |
Jul 17th 2009, 15:24 |
markstory |
setting autoFixtures = false means you have to manually load them before building a model. |
# |
Jul 17th 2009, 15:24 |
alkemann |
Phally: no. could only get it to stfu baking fxitures for everything and user_fixture.php in app |
# |
Jul 17th 2009, 15:23 |
Phally |
alkemann: you are using my fixture? plugin.users.user ? |
# |
Jul 17th 2009, 15:23 |
alkemann |
markstory: adding all fixtures and public $autoFixtures = false; i guess |
# |
Jul 17th 2009, 15:21 |
markstory |
yeah :) |
# |
Jul 17th 2009, 15:21 |
dennishennen |
I should know better |
# |
Jul 17th 2009, 15:20 |
dennishennen |
yep, didn't do that |
# |
Jul 17th 2009, 15:20 |
markstory |
you need to pass those into the parent::__construct() |
# |
Jul 17th 2009, 15:20 |
dennishennen |
ahh |