Skip to content

Commit 6a0fe33

Browse files
committed
fixup! fix: add failing test when aliasing a column of a joined relation
1 parent e089921 commit 6a0fe33

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/Ticket/585TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function test_hydrateArrayShallow_withAllColumnsAliased_thenResultsHasAll
6363
public function test_hydrateArray_withAllColumnsAliased_thenResultsHasAllRecords()
6464
{
6565
$hydrateType = Doctrine_Core::HYDRATE_ARRAY;
66-
$expectedKeys = array('aliasId', 'aliasName');
66+
$expectedKeys = array('id', 'aliasId', 'aliasName');
6767

6868
$this->doTestWithAllColumnsAliased($hydrateType, $expectedKeys);
6969
}

tests/Ticket/GH134TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function test_hydrateArrayShallow_withAllColumnsAliased_thenResultsHasAll
4444
public function test_hydrateArray_withAllColumnsAliased_thenResultsHasAllRecords()
4545
{
4646
$hydrateType = Doctrine_Core::HYDRATE_ARRAY;
47-
$expectedKeys = array('id', 'aliasAddress');
47+
$expectedKeys = array('id', 'aliasAddress', 'Email');
4848

4949
$this->doTestWithAllColumnsAliased($hydrateType, $expectedKeys);
5050
}

0 commit comments

Comments
 (0)