Skip to content

Commit 4b48984

Browse files
authored
Merge pull request #232 from RonasIT/229-search-order-test
[229]: add order by to entity search test
2 parents 3594fb7 + 74a59ac commit 4b48984

File tree

5 files changed

+35
-0
lines changed

5 files changed

+35
-0
lines changed

stubs/test.blade.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,13 @@ public static function getSearchFilters(): array
201201
],
202202
'fixture' => 'search_by_page_per_page',
203203
],
204+
[
205+
'filter' => [
206+
'order_by' => 'id',
207+
'desc' => true,
208+
],
209+
'fixture' => 'search_by_order_id',
210+
],
204211
];
205212
}
206213

tests/fixtures/CommandTest/subfolder/test.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,13 @@ public static function getSearchFilters(): array
107107
],
108108
'fixture' => 'search_by_page_per_page',
109109
],
110+
[
111+
'filter' => [
112+
'order_by' => 'id',
113+
'desc' => true,
114+
],
115+
'fixture' => 'search_by_order_id',
116+
],
110117
];
111118
}
112119

tests/fixtures/CommandTest/test.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,13 @@ public static function getSearchFilters(): array
107107
],
108108
'fixture' => 'search_by_page_per_page',
109109
],
110+
[
111+
'filter' => [
112+
'order_by' => 'id',
113+
'desc' => true,
114+
],
115+
'fixture' => 'search_by_order_id',
116+
],
110117
];
111118
}
112119

tests/fixtures/TestGeneratorTest/post_test.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,13 @@ public static function getSearchFilters(): array
146146
],
147147
'fixture' => 'search_by_page_per_page',
148148
],
149+
[
150+
'filter' => [
151+
'order_by' => 'id',
152+
'desc' => true,
153+
],
154+
'fixture' => 'search_by_order_id',
155+
],
149156
];
150157
}
151158

tests/fixtures/TestGeneratorTest/post_test_read_delete.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ public static function getSearchFilters(): array
8888
],
8989
'fixture' => 'search_by_page_per_page',
9090
],
91+
[
92+
'filter' => [
93+
'order_by' => 'id',
94+
'desc' => true,
95+
],
96+
'fixture' => 'search_by_order_id',
97+
],
9198
];
9299
}
93100

0 commit comments

Comments
 (0)