Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[Tests] fix enum tests

  • Loading branch information...
commit f3a6499174dc62dbb8adc7a55d80798806b924f2 1 parent 8fa8df2
@jaugustin jaugustin authored
View
18 tests/Propel/Tests/Generator/Builder/Om/GeneratedPeerEnumColumnTypeTest.php
@@ -39,13 +39,13 @@ public function setUp()
public function valueSetConstantProvider()
{
return array(
- array('\ComplexColumnTypeEntity103TableMap::BAR_FOO', 'foo'),
- array('\ComplexColumnTypeEntity103TableMap::BAR_BAR', 'bar'),
- array('\ComplexColumnTypeEntity103TableMap::BAR_BAZ', 'baz'),
- array('\ComplexColumnTypeEntity103TableMap::BAR_1', '1'),
- array('\ComplexColumnTypeEntity103TableMap::BAR_4', '4'),
- array('\ComplexColumnTypeEntity103TableMap::BAR__', '('),
- array('\ComplexColumnTypeEntity103TableMap::BAR_FOO_BAR', 'foo bar'),
+ 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'),
);
}
@@ -60,13 +60,13 @@ public function testValueSetConstants($constantName, $value)
public function testGetValueSets()
{
- $expected = array(\ComplexColumnTypeEntity103TableMap::BAR => array('foo', 'bar', 'baz', '1', '4', '(', 'foo bar'));
+ $expected = array(\Map\ComplexColumnTypeEntity103TableMap::BAR => array('foo', 'bar', 'baz', '1', '4', '(', 'foo bar'));
$this->assertEquals($expected, \ComplexColumnTypeEntity103Peer::getValueSets());
}
public function testGetValueSet()
{
$expected = array('foo', 'bar', 'baz', '1', '4', '(', 'foo bar');
- $this->assertEquals($expected, \ComplexColumnTypeEntity103Peer::getValueSet(\ComplexColumnTypeEntity103TableMap::BAR));
+ $this->assertEquals($expected, \ComplexColumnTypeEntity103Peer::getValueSet(\Map\ComplexColumnTypeEntity103TableMap::BAR));
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.