Google Groups Home
Help | Sign in
testing in cakephp 1.2-Bug- Database table user_tests for model UserTest was not found
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
bhushan A  
View profile
 More options Apr 18, 4:46 am
From: bhushan A <bhushanahir...@gmail.com>
Date: Fri, 18 Apr 2008 01:46:25 -0700 (PDT)
Local: Fri, Apr 18 2008 4:46 am
Subject: testing in cakephp 1.2-Bug- Database table user_tests for model UserTest was not found
I have followed the steps  mentioned 'http://bakery.cakephp.org/
articles/view/testing-models-with-cakephp-1-2-test-suite' LINK. I am
putting my user.test.php's code here. Please let me know what i am
missing.

<?php
App::import('Model','User');

class UserTest extends User{
var $name = 'UserTest ';
var $useDbConfig = 'test_suite';

}

class UserTest Case extends CakeTestCase {
var $fixtures = array( 'user_test' );
function testInactive() {
$this->UserTest =& new UserTest ();

$result = $this->UserTest ->inactive(array('id', 'name'));
$expected = array(
array('UserTest ' => array( 'id' => 1, 'name' => 'User Communities' ))

);

$this->assertEqual($result, $expected);

}
}

?>
I am getting  Database table user_tests for model UserTest was not
found error. How tables for test suites are automatically created? Do
i need to any setting in database.php or user_test_fixtures.php file?

Please reply.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
validkeys  
View profile
 More options Apr 30, 4:48 pm
From: validkeys <kyle.da...@indieworldonline.com>
Date: Wed, 30 Apr 2008 13:48:25 -0700 (PDT)
Local: Wed, Apr 30 2008 4:48 pm
Subject: Re: testing in cakephp 1.2-Bug- Database table user_tests for model UserTest was not found
I was having this problem earlier. I believe it was a bug that has
since been fixed. I downloaded the most recent nightly build and it
started working. Let me know if that did it for you. You have probably
already solved this one anyways

On Apr 18, 4:46 am, bhushan A <bhushanahir...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google