1
0
mirror of synced 2025-02-09 00:39:25 +03:00

#6303 #6304 re-enabling disabled test code data

This commit is contained in:
Marco Pivetta 2017-08-19 17:47:12 +02:00
parent 8af68614fc
commit 42d9162bd5
No known key found for this signature in database
GPG Key ID: 4167D3337FD9D629

View File

@ -24,24 +24,24 @@ class DDC6303Test extends OrmFunctionalTestCase
} catch (ToolsException $ignored) {
}
}
//
// public function testMixedTypeHydratedCorrectlyInJoinedInheritance() : void
// {
// // DDC6303ChildA and DDC6303ChildB have an inheritance from DDC6303BaseClass,
// // but one has a string originalData and the second has an array, since the fields
// // are mapped differently
// $this->assertHydratedEntitiesSameToPersistedOnes([
// 'a' => new DDC6303ChildA('a', 'authorized'),
// 'b' => new DDC6303ChildB('b', ['accepted', 'authorized']),
// ]);
//
// }
//
public function testMixedTypeHydratedCorrectlyInJoinedInheritance() : void
{
// DDC6303ChildA and DDC6303ChildB have an inheritance from DDC6303BaseClass,
// but one has a string originalData and the second has an array, since the fields
// are mapped differently
$this->assertHydratedEntitiesSameToPersistedOnes([
'a' => new DDC6303ChildA('a', 'authorized'),
'b' => new DDC6303ChildB('b', ['accepted', 'authorized']),
]);
}
public function testEmptyValuesInJoinedInheritance() : void
{
$this->assertHydratedEntitiesSameToPersistedOnes([
// 'stringEmpty' => new DDC6303ChildA('stringEmpty', ''),
// 'stringZero' => new DDC6303ChildA('stringZero', 0),
'stringEmpty' => new DDC6303ChildA('stringEmpty', ''),
'stringZero' => new DDC6303ChildA('stringZero', 0),
'arrayEmpty' => new DDC6303ChildB('arrayEmpty', []),
]);
}