Hi!

I am having all sorts of trouble getting a very simple unit test case
to work on a Model that I have added the CakePHP Translate Behaviour
to.

For example, my Post model has the Translate Behaviour:
__

class Post extends AppModel {
        var $actsAs = array( 'Translate' => array( 'title' =>
'titleTranslation' ) );
...
}
__


I then create a Post model test file "post.test.php":
__

App::import('Model', 'Post');

class PostTestCase extends CakeTestCase {
        var $fixtures = array( 'post_test' );
...
}
__


When I run this test I get the following error:

"Missing Database Table -- Error: Database table test_suite_i18n for
model I18nModel was not found."

But I have no I18n model!  There is an "i18n" table in the database
which was generated by using the bake command "cake i18n".

I notice that if I remove the Translate Behaviour from Post model the
tests run fine, so it's definitely Translate causing this.

Has anyone experienced this before?  Can you run tests around models
with the Translate behaviour?

Any help gratefully received!

--~--~---------~--~----~------------~-------~--~----~
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