not only annoying, but does not scale. any tests will break if you add
a new related model to one that already has test cases.

maybe have all tests extend a custom TestCase class (which extends
CakeTestCase), that should work and that way they should pick up the
inheritance

On Sep 13, 5:32 pm, euromark <[email protected]> wrote:
> i know exactly what you mean :)
> its really annoying to need to declare like all possibly related
> fixtures
>
> maybe some shell script that creates a class you could use?
> or a function which outputs all possible ones and can be assigned to
> $fixtures?
>
> On 13 Sep., 21:32, "j.blotus" <[email protected]> wrote:
>
>
>
> > When I am testing a model, every time I create a new model in my
> > application, I have to add it in to my $fixtures array for each test
> > case, or I get missing table errors when testing.
>
> > Is it possible to define $fixtures in just one spot?
>
> > maybe app_cake_test_case or something like that?
>
> > This can become a big problem the more tests I write.
>
> > My current array =
>
> > var $fixtures = array(
> >         'app.booking',
> >         'app.listing',
> >         'app.instant_payment_notification',
> >         'app.transaction',
> >         'app.package',
> >         'app.promo_code',
> >         'app.note',
> >         'app.inquiry',
> >         'app.event',
> >         'app.event_type',
> >         'app.publisher',
> >         'app.report',
> >         'app.country',
> >         'app.state',
> >         'app.region',
> >         'app.city',
> >         'app.user',
> >         'app.review',
> >         'app.image',
> >         'app.deal',
> >         'app.visit'
> >     );

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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