Skip to content

Commit

Permalink
CT-1951 test of new params valuesBy*
Browse files Browse the repository at this point in the history
  • Loading branch information
jirkasemmler committed Jan 24, 2025
1 parent 1de081a commit 320863d
Showing 1 changed file with 93 additions and 0 deletions.
93 changes: 93 additions & 0 deletions tests/Backend/CommonPart1/DeleteRowsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,99 @@ public function tableDeleteRowsByFiltersData(): array
],
],
],
'where filter: valuesByTableInWorkspace' => [
[
'whereFilters' => [
[
'column' => 'city',
'valuesByTableInWorkspace' => [
'workspaceId' => 123,
'table' => 'table',
'column' => 'city',
],
],
],
],
// no rows should be deleted because valuesByTableInStorage doesn't do anything yet
[
[
'1',
'martin',
'PRG',
'male',
],
[
'2',
'klara',
'PRG',
'female',
],
[
'3',
'ondra',
'VAN',
'male',
],
[
'4',
'miro',
'BRA',
'male',
],
[
'5',
'hidden',
'',
'male',
],
],
],
'where filter: valuesByTableInStorage' => [
[
'whereFilters' => [
[
'column' => 'city',
'valuesByTableInStorage' => [
'tableId' => 'table',
'column' => 'city',
],
],
],
],
// no rows should be deleted because valuesByTableInStorage doesn't do anything yet
[
[
'1',
'martin',
'PRG',
'male',
],
[
'2',
'klara',
'PRG',
'female',
],
[
'3',
'ondra',
'VAN',
'male',
],
[
'4',
'miro',
'BRA',
'male',
],
[
'5',
'hidden',
'',
'male',
],
],
],
];
}
}

0 comments on commit 320863d

Please sign in to comment.