Skip to content

Commit 19b4a35

Browse files
committed
Expand testcase to cover error
1 parent 2be9dac commit 19b4a35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/dbObjectTests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function createTable ($name, $data) {
131131

132132

133133
$products = product::ArrayBuilder()->with('userId')->get(2);
134-
if (!is_array ($products[0]['userId'])) {
134+
if (!is_array ($products[0]['userId']) || !is_array ($products[1]['userId'])) {
135135
echo "Error in with processing in get";
136136
exit;
137137
}

0 commit comments

Comments
 (0)