Re: How to add a fixture to a plugin test?
thats because it wont be the real model but an app model instance :) i figured that out the hard way, too On 2 Dez., 15:47, Roland wrote: > Ah, of course^^ > > Thx, now it works :) > > best regards, > Roland > > On 30 Nov., 04:46, euromark wrote: > > > > > > > > > i think you just have to use > > ClassRegistry::init('ModelName); > > here > > > On 29 Nov., 22:38, Roland wrote: > > > > None, that's the problem. I got non error or tips what is not > > > working... but when I do $article->find('all') I get an empty > > > result... > > > > thanks > > > Roland > > > > On 29 Nov., 04:44, José Lorenzo wrote: > > > > > this should just work, what error are you getting? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: How to add a fixture to a plugin test?
Ah, of course^^ Thx, now it works :) best regards, Roland On 30 Nov., 04:46, euromark wrote: > i think you just have to use > ClassRegistry::init('ModelName); > here > > On 29 Nov., 22:38, Roland wrote: > > > > > > > > > None, that's the problem. I got non error or tips what is not > > working... but when I do $article->find('all') I get an empty > > result... > > > thanks > > Roland > > > On 29 Nov., 04:44, José Lorenzo wrote: > > > > this should just work, what error are you getting? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: How to add a fixture to a plugin test?
i think you just have to use ClassRegistry::init('ModelName); here On 29 Nov., 22:38, Roland wrote: > None, that's the problem. I got non error or tips what is not > working... but when I do $article->find('all') I get an empty > result... > > thanks > Roland > > On 29 Nov., 04:44, José Lorenzo wrote: > > > > > > > > > this should just work, what error are you getting? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: How to add a fixture to a plugin test?
None, that's the problem. I got non error or tips what is not working... but when I do $article->find('all') I get an empty result... thanks Roland On 29 Nov., 04:44, José Lorenzo wrote: > this should just work, what error are you getting? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: How to add a fixture to a plugin test?
this should just work, what error are you getting? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: How to add a fixture to a plugin test?
Hi! Here's my current test case. See the function testEdit. It's not very elegant yet, that's why I want to extend it... https://github.com/Bancha/Bancha/blob/master/Test/Case/System/BanchaCrudTest.php The Bancha classes just extend the default cake Dispatcher... so imagine it's just normal cake dispatching system test I want to execute. thx Roland On 25 Nov., 21:54, euromark wrote: > what do you mean with it doesnt work? > how did you initialize/access the model then? > some code would be great > > On 25 Nov., 15:26, Roland wrote: > > > > > > > > > Hi! > > > I have a fixture in plugins/Bancha/Test/Fixture/ArticleFixture.php and > > a test case in plugins/Bancha/Test/Case/System/ConsistencyTests.php, > > written for CakePHP 2.0. > > > Corresponding to the cookbook I just have to include following line: > > public $fixtures = array('plugin.bancha.article'); > > > But this doesn't work. What am I doing wrong? > > > thanks > > Roland -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: How to add a fixture to a plugin test?
what do you mean with it doesnt work? how did you initialize/access the model then? some code would be great On 25 Nov., 15:26, Roland wrote: > Hi! > > I have a fixture in plugins/Bancha/Test/Fixture/ArticleFixture.php and > a test case in plugins/Bancha/Test/Case/System/ConsistencyTests.php, > written for CakePHP 2.0. > > Corresponding to the cookbook I just have to include following line: > public $fixtures = array('plugin.bancha.article'); > > But this doesn't work. What am I doing wrong? > > thanks > Roland -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php