Permalink
Browse files

[Tests] fix tests broken with contants move from Peer to TableMap

  • Loading branch information...
1 parent ec6c6d8 commit 1801e9a96fd3ab8ea8309f02efcab269ec5d268d @jaugustin jaugustin committed Jan 14, 2013
@@ -10,11 +10,13 @@
namespace Propel\Tests;
+
use Propel\Tests\Helpers\Bookstore\BookstoreTestBase;
use Propel\Tests\Bookstore\Author;
use Propel\Tests\Bookstore\Book;
use Propel\Tests\Bookstore\BookPeer;
+use Propel\Tests\Bookstore\Map\BookTableMap;
use Propel\Tests\Bookstore\Publisher;
use Propel\Runtime\Propel;
@@ -57,7 +59,7 @@ public function testUtf8()
{
$this->markTestSkipped('Skipped because of weird behavior on some platforms');
- $db = Propel::getServiceContainer()->getAdapter(BookPeer::DATABASE_NAME);
+ $db = Propel::getServiceContainer()->getAdapter(BookTableMap::DATABASE_NAME);
$title = "Смерть на брудершафт. Младенец и черт";
// 1234567890123456789012345678901234567
@@ -88,7 +90,7 @@ public function testInvalidCharset()
{
$this->markTestSkipped('Skipped because of weird behavior on some platforms');
- $db = Propel::getServiceContainer()->getAdapter(BookPeer::DATABASE_NAME);
+ $db = Propel::getServiceContainer()->getAdapter(BookTableMap::DATABASE_NAME);
if ($db instanceof SqliteAdapter) {
$this->markTestSkipped();
}
@@ -39,13 +39,13 @@ public function setUp()
public function valueSetConstantProvider()
{
return array(
- array('\ComplexColumnTypeEntity103Peer::BAR_FOO', 'foo'),
- array('\ComplexColumnTypeEntity103Peer::BAR_BAR', 'bar'),
- array('\ComplexColumnTypeEntity103Peer::BAR_BAZ', 'baz'),
- array('\ComplexColumnTypeEntity103Peer::BAR_1', '1'),
- array('\ComplexColumnTypeEntity103Peer::BAR_4', '4'),
- array('\ComplexColumnTypeEntity103Peer::BAR__', '('),
- array('\ComplexColumnTypeEntity103Peer::BAR_FOO_BAR', 'foo bar'),
+ array('\Map\ComplexColumnTypeEntity103TableMap::BAR_FOO', 'foo'),
+ array('\Map\ComplexColumnTypeEntity103TableMap::BAR_BAR', 'bar'),
+ array('\Map\ComplexColumnTypeEntity103TableMap::BAR_BAZ', 'baz'),
+ array('\Map\ComplexColumnTypeEntity103TableMap::BAR_1', '1'),
+ array('\Map\ComplexColumnTypeEntity103TableMap::BAR_4', '4'),
+ array('\Map\ComplexColumnTypeEntity103TableMap::BAR__', '('),
+ array('\Map\ComplexColumnTypeEntity103TableMap::BAR_FOO_BAR', 'foo bar'),
);
}
@@ -61,12 +61,12 @@ public function testValueSetConstants($constantName, $value)
public function testGetValueSets()
{
$expected = array(\Map\ComplexColumnTypeEntity103TableMap::BAR => array('foo', 'bar', 'baz', '1', '4', '(', 'foo bar'));
- $this->assertEquals($expected, \ComplexColumnTypeEntity103Peer::getValueSets());
+ $this->assertEquals($expected, \Map\ComplexColumnTypeEntity103TableMap::getValueSets());
}
public function testGetValueSet()
{
$expected = array('foo', 'bar', 'baz', '1', '4', '(', 'foo bar');
- $this->assertEquals($expected, \ComplexColumnTypeEntity103Peer::getValueSet(\Map\ComplexColumnTypeEntity103TableMap::BAR));
+ $this->assertEquals($expected, \Map\ComplexColumnTypeEntity103TableMap::getValueSet(\Map\ComplexColumnTypeEntity103TableMap::BAR));
}
}

0 comments on commit 1801e9a

Please sign in to comment.