File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
tests/Feature/Services/Plugins Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change 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-
234211test ('applySearchWeighted prioritizes relevance over install count ' , function () {
235212 // Create plugins with different install counts and names
236213 Plugin::factory ()->create ([
You can’t perform that action at this time.
0 commit comments