Mark is a designer and web-developer, working with standards compliant HTML and CSS. He has been building websites since 2000. Currently he is employed at Freshbooks as a developer, and actively contributes to open source projects specifically CakePHP. He uses this site as a place to share what he has learned and made.
Mark lives in Toronto, Ontario, Canada with his lovely wife Tina. Hosting for this site is provided by FosterInteractive.
Hey mark,
hope all’s well. hey, I’m trying to write some tests for an app that has a model with an association with a plugin model. any good examples of this?
For example, in the CakeBook comments belongs to the users model in the users plugin — unfortunately there aren’t any tests written for that in the repo at thechaw — but assuming i’m testing that exact thing — my model tests error out as the plugin table/fixtures aren’t loaded.
according the what I recall from your talk, and referencing the slides — it should be as simple as including var $fixtures = array(‘app.comment’, ‘users.users_user’); (assuming we’re using the user prefix for all plugin model names) and it should work, right?
oh and since no one has commented yet — great slides and great talks at cakefest. see ya mark!
Jon on 21/2/09
Cool site.
Rob Miller on 5/6/09