# |
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? :) |
# |
Jul 17th 2009, 14:35 |
alkemann |
i know. i was just brainstorming.. there could be an api for importing records to fixtures? |
# |
Jul 17th 2009, 14:34 |
markstory |
that would imply they are attached to the core. |
# |
Jul 17th 2009, 14:33 |
alkemann |
markstory: hmm. records were a bit dull. maybe fixture baking could take advantage of the dummy plugin (or phpfaker vendor) |
# |
Jul 17th 2009, 14:33 |
markstory |
ah found it I think. |
# |
Jul 17th 2009, 14:32 |
markstory |
I don't see any extra ; in the template. |
# |
Jul 17th 2009, 14:30 |
markstory |
wonder where that is coming from. |
# |
Jul 17th 2009, 14:29 |
markstory |
doh |
# |
Jul 17th 2009, 14:28 |
alkemann |
markstory: bug on line 6 of fixture templates http://bin.cakephp.org/view/664108134 |
# |
Jul 17th 2009, 14:27 |
markstory |
) |
# |
Jul 17th 2009, 14:26 |
Phally |
markstory: dank u wel |
# |
Jul 17th 2009, 14:07 |
markstory |
or cake bake fixture <name> or cake bake fixture all |
# |
Jul 17th 2009, 14:07 |
markstory |
cake bake fixture |
# |
Jul 17th 2009, 14:07 |
markstory |
or tests |
# |
Jul 17th 2009, 14:07 |
markstory |
alkemann: there is no shortcut for fixtures. |
# |
Jul 17th 2009, 13:56 |
alkemann |
markstory: trying to do F for fixture. it jsut repeats the question.. now i need them tests heh |