Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Start fixing some tests

  • Loading branch information...
commit 5066ac305bb41f5dc8a601f2cf5836ad6ca20c68 1 parent c8dd63e
William Durand willdurand authored
8 ...vior/I18n/I18nBehaviorPeerBuilderModifierTest.php → .../I18n/I18nBehaviorTableMapBuilderModifierTest.php
View
@@ -20,7 +20,7 @@
*
* @author François Zaninotto
*/
-class I18nBehaviorPeerBuilderModifierTest extends \PHPUnit_Framework_TestCase
+class I18nBehaviorTableMapBuilderModifierTest extends \PHPUnit_Framework_TestCase
{
public function testDefaultLocaleConstant()
{
@@ -39,8 +39,8 @@ public function testDefaultLocaleConstant()
</database>
EOF;
QuickBuilder::buildSchema($schema);
- $this->assertEquals('en_EN', \I18nBehaviorTest01Peer::DEFAULT_LOCALE);
- $this->assertEquals('fr_FR', \I18nBehaviorTest02Peer::DEFAULT_LOCALE);
+ $this->assertEquals('en_EN', \I18nBehaviorTest01TableMap::DEFAULT_LOCALE);
+ $this->assertEquals('fr_FR', \I18nBehaviorTest02TableMap::DEFAULT_LOCALE);
}
public function testFieldKeys()
@@ -59,7 +59,7 @@ public function testFieldKeys()
</database>
EOF;
QuickBuilder::buildSchema($schema);
- $this->assertEquals(array(0, 1, 2), \I18nBehaviorTest03Peer::getFieldNames(TableMap::TYPE_NUM));
+ $this->assertEquals(array(0, 1, 2), \I18nBehaviorTest03TableMap::getFieldNames(TableMap::TYPE_NUM));
}
}
2  tests/Propel/Tests/Helpers/Bookstore/BookstoreTestBase.php
View
@@ -40,7 +40,7 @@ public static function setUpBeforeClass()
*/
protected function setUp()
{
- $this->con = Propel::getServiceContainer()->getConnection(BookPeer::DATABASE_NAME);
+ $this->con = Propel::getServiceContainer()->getConnection(BookTableMap::DATABASE_NAME);
$this->con->beginTransaction();
}
Please sign in to comment.
Something went wrong with that request. Please try again.