Skip to content

Commit f88db5e

Browse files
committed
rm pointless test (and commented-out "for reference" test)
Signed-off-by: Chuck Adams <chaz@chaz.works>
1 parent 4b40b8a commit f88db5e

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

tests/Feature/Services/Plugins/QueryPluginsServiceTest.php

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -208,29 +208,6 @@
208208
expect($sql)->toContain('order by');
209209
});
210210

211-
test('browseToSortColumn returns correct column for each browse parameter', function () {
212-
expect(QueryPluginsService::browseToSortColumn('new'))
213-
->toBe('added')
214-
->and(QueryPluginsService::browseToSortColumn('updated'))->toBe('last_updated')
215-
->and(QueryPluginsService::browseToSortColumn('top-rated'))->toBe('rating')
216-
->and(QueryPluginsService::browseToSortColumn('featured'))->toBe('rating')
217-
->and(QueryPluginsService::browseToSortColumn('popular'))->toBe('active_installs')
218-
->and(QueryPluginsService::browseToSortColumn(null))->toBe('active_installs');
219-
});
220-
221-
// [chuck 2025-09-13] These are no longer used, but keeping them commented for future reference.
222-
// If they're still not used after 6 months, just delete them.
223-
//
224-
// test('normalizeSearchString handles various inputs correctly', function () {
225-
// expect(QueryPluginsService::normalizeSearchString(null))
226-
// ->toBeNull()
227-
// ->and(QueryPluginsService::normalizeSearchString(''))->toBe('')
228-
// ->and(QueryPluginsService::normalizeSearchString(' test '))->toBe('test')
229-
// ->and(QueryPluginsService::normalizeSearchString('test search'))->toBe('test search')
230-
// ->and(QueryPluginsService::normalizeSearchString('test@example.com'))->toBe('test@example.com')
231-
// ->and(QueryPluginsService::normalizeSearchString('test*search'))->toBe('test search');
232-
// });
233-
234211
test('applySearchWeighted prioritizes relevance over install count', function () {
235212
// Create plugins with different install counts and names
236213
Plugin::factory()->create([

0 commit comments

Comments
 (0)