Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
r2411 - trunk/tests
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
  1 message - Collapse all  -  Translate all to Translated (View all originals)
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
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
poo...@gmail.com  
View profile   Translate to Translated (View Original)
 More options 4 Sep 2007, 16:31
From: poo...@gmail.com
Date: Tue, 04 Sep 2007 16:31:37 +0100
Local: Tues 4 Sep 2007 16:31
Subject: r2411 - trunk/tests
Author: jackbravo
Date: 2007-09-04 16:11:49 +0100 (Tue, 04 Sep 2007)
New Revision: 2411

Modified:
   trunk/tests/UnitTestCase.php
Log:
Table name may be different than just tablelize class name

For example, for class User, the table name is entity

Modified: trunk/tests/UnitTestCase.php
===================================================================
--- trunk/tests/UnitTestCase.php        2007-09-04 13:22:38 UTC (rev 2410)
+++ trunk/tests/UnitTestCase.php        2007-09-04 15:11:49 UTC (rev 2411)
@@ -180,7 +180,9 @@
     }
     public function prepareTables() {
         foreach($this->tables as $name) {
-            $query = 'DROP TABLE ' . Doctrine::tableize($name);
+            $name = ucwords($name);
+            $table = $this->connection->getTable($name);
+            $query = 'DROP TABLE ' . $table->getTableName();
             try {
                 $this->conn->exec($query);
             } catch(Doctrine_Connection_Exception $e) {


    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
©2009 Google