Skip to content
This repository
Browse code

Start fixing some tests

  • Loading branch information...
commit 5066ac305bb41f5dc8a601f2cf5836ad6ca20c68 1 parent c8dd63e
William Durand willdurand authored
8 ...vior/I18n/I18nBehaviorPeerBuilderModifierTest.php → .../I18n/I18nBehaviorTableMapBuilderModifierTest.php
@@ -20,7 +20,7 @@
20 20 *
21 21 * @author François Zaninotto
22 22 */
23   -class I18nBehaviorPeerBuilderModifierTest extends \PHPUnit_Framework_TestCase
  23 +class I18nBehaviorTableMapBuilderModifierTest extends \PHPUnit_Framework_TestCase
24 24 {
25 25 public function testDefaultLocaleConstant()
26 26 {
@@ -39,8 +39,8 @@ public function testDefaultLocaleConstant()
39 39 </database>
40 40 EOF;
41 41 QuickBuilder::buildSchema($schema);
42   - $this->assertEquals('en_EN', \I18nBehaviorTest01Peer::DEFAULT_LOCALE);
43   - $this->assertEquals('fr_FR', \I18nBehaviorTest02Peer::DEFAULT_LOCALE);
  42 + $this->assertEquals('en_EN', \I18nBehaviorTest01TableMap::DEFAULT_LOCALE);
  43 + $this->assertEquals('fr_FR', \I18nBehaviorTest02TableMap::DEFAULT_LOCALE);
44 44 }
45 45
46 46 public function testFieldKeys()
@@ -59,7 +59,7 @@ public function testFieldKeys()
59 59 </database>
60 60 EOF;
61 61 QuickBuilder::buildSchema($schema);
62   - $this->assertEquals(array(0, 1, 2), \I18nBehaviorTest03Peer::getFieldNames(TableMap::TYPE_NUM));
  62 + $this->assertEquals(array(0, 1, 2), \I18nBehaviorTest03TableMap::getFieldNames(TableMap::TYPE_NUM));
63 63 }
64 64
65 65 }
2  tests/Propel/Tests/Helpers/Bookstore/BookstoreTestBase.php
@@ -40,7 +40,7 @@ public static function setUpBeforeClass()
40 40 */
41 41 protected function setUp()
42 42 {
43   - $this->con = Propel::getServiceContainer()->getConnection(BookPeer::DATABASE_NAME);
  43 + $this->con = Propel::getServiceContainer()->getConnection(BookTableMap::DATABASE_NAME);
44 44 $this->con->beginTransaction();
45 45 }
46 46

0 comments on commit 5066ac3

Please sign in to comment.
Something went wrong with that request. Please try again.