# |
Jul 17th 2009, 15:07 |
markstory |
or are using setUp |
# |
Jul 17th 2009, 15:07 |
markstory |
unless you have no fixtures. |
# |
Jul 17th 2009, 15:07 |
markstory |
then that should work. |
# |
Jul 17th 2009, 15:07 |
alkemann |
markstory: i am |
# |
Jul 17th 2009, 15:07 |
alkemann |
@alkemann , illustrata.no/blog |
# |
Jul 17th 2009, 15:06 |
techno-geek |
ADmad, I suppose that will have to do. thanks |
# |
Jul 17th 2009, 15:05 |
Phally |
alkemann: this is what causes it: http://api.cakephp.org/file/libs/error.php |
# |
Jul 17th 2009, 15:05 |
ADmad |
techno-geek: http://pipes.yahoo.com/pipes/pipe.run?_id=AC2x_QO_3RG2ja_EBB50VAand_render=rss http://planetcakephp.org/ |
# |
Jul 17th 2009, 15:04 |
markstory |
to build the model |
# |
Jul 17th 2009, 15:04 |
markstory |
alkemann: use Cr::init() |
# |
Jul 17th 2009, 15:02 |
techno-geek |
I know this is off topic but who all in here has blogs and/or a twitter account? If you have one I would really appreciate it if you would PM it to me or something because I really like reading them and you guys are obviously the cream of the crop :P |
# |
Jul 17th 2009, 14:57 |
Phally |
oh there isn't a CakeError haha |
# |
Jul 17th 2009, 14:55 |
Phally |
alkemann: or CakeError |
# |
Jul 17th 2009, 14:55 |
Phally |
alkemann: AppError probably extends AppController in some way |
# |
Jul 17th 2009, 14:55 |
alkemann |
Phally: the problem seems to be related to the error. ie when i mess up something so it wants to tell me missing DB table, somehow your access components gets involved |
# |
Jul 17th 2009, 14:52 |
alkemann |
when importing model to do tests, how can i make it use a test_suite db config ? so i as to not work on real tables |
# |
Jul 17th 2009, 14:52 |
Phally |
alkemann: then yeah, it is strange haha, since the component is added in AppController, else shouldn't bitch |
# |
Jul 17th 2009, 14:51 |
alkemann |
no |
# |
Jul 17th 2009, 14:50 |
Phally |
alkemann: are you using a fake controller? |
# |
Jul 17th 2009, 14:50 |
alkemann |
i just dont see why a components gets involved at all when runnning tests on models |
# |
Jul 17th 2009, 14:50 |
Phally |
should be users_plug_users |
# |
Jul 17th 2009, 14:50 |
Phally |
alkemann: maybe it doesn't 'see' it should use the other db config |
# |
Jul 17th 2009, 14:49 |
Phally |
'in this branch' |
# |
Jul 17th 2009, 14:49 |
Phally |
i don't even have an article fixture :p |
# |
Jul 17th 2009, 14:48 |
alkemann |
get problem if i include article fixture it seems |
# |
Jul 17th 2009, 14:47 |
alkemann |
? on a tag test and fixture i made |
# |
Jul 17th 2009, 14:47 |
Phally |
there wasn't a new one at the time |
# |
Jul 17th 2009, 14:46 |
Phally |
ah, that is because i built it with the old schema |
# |
Jul 17th 2009, 14:46 |
alkemann |
complaining about missing table users when im trying to run a model test on TAg |
# |
Jul 17th 2009, 14:45 |
Phally |
alkemann: why don't i have that :p |
# |
Jul 17th 2009, 14:45 |
alkemann |
Undefined index: controller [APP\plugins\users\controllers\components\access.php, |
# |
Jul 17th 2009, 14:44 |
Phally |
alkemann: depends on what it says |
# |
Jul 17th 2009, 14:44 |
alkemann |
Phally: why do i get complains frmo ur Access component when trying to run a test? |
# |
Jul 17th 2009, 14:38 |
markstory |
yeah |
# |
Jul 17th 2009, 14:38 |
alkemann |
yea that prob makes most sense |
# |
Jul 17th 2009, 14:38 |
markstory |
use scaffolds / faker to fill tables, and build fixtures off it. |
# |
Jul 17th 2009, 14:37 |
markstory |
that is something I would be willing to do. |
# |
Jul 17th 2009, 14:37 |
markstory |
make test data and generate fixtures. |
# |
Jul 17th 2009, 14:37 |
markstory |
could do that. |
# |
Jul 17th 2009, 14:37 |
pointlessjon |
fixturize? |
# |
Jul 17th 2009, 14:35 |
alkemann |
be easier to just put the data in the table and import fixtures maybe? :) |