Skip to content

[293]: delete deprecated SearchTrait methods, update visibility - #294

Merged
DenTray merged 5 commits into
masterfrom
293-delete-deprecated
Aug 24, 2026
Merged

[293]: delete deprecated SearchTrait methods, update visibility#294
DenTray merged 5 commits into
masterfrom
293-delete-deprecated

Conversation

@neellii

@neellii neellii commented Jun 16, 2026

Copy link
Copy Markdown

refs: #293

@vitgrams vitgrams assigned DenTray and unassigned vitgrams Jun 17, 2026
Comment thread tests/SearchTraitTest.php Outdated
Comment on lines +283 to +288
$this->callEncapsulatedMethod($this->testRepositoryClass, 'setAdditionalReservedFilters',
'date_greater',
'date_less',
'updated_at_greater',
'updated_at_less',
);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code style: php-cs-fixer with the project config reports this file as fixable.

Reproduce: PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --dry-run --diff tests/SearchTraitTest.php

Suggested change
$this->callEncapsulatedMethod($this->testRepositoryClass, 'setAdditionalReservedFilters',
'date_greater',
'date_less',
'updated_at_greater',
'updated_at_less',
);
$this->callEncapsulatedMethod(
$this->testRepositoryClass,
'setAdditionalReservedFilters',
'date_greater',
'date_less',
'updated_at_greater',
'updated_at_less',
);

Comment thread tests/SearchTraitTest.php
->filterLessThan('updated_at', Carbon::now())
->filterGreater('date', false, 'date_greater')
->filterLess('date', false, 'date_less')
->filterValue('created_at', '>=', Carbon::now())

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: testSearchQueryWithFiltersFunctions now largely overlaps with testSearchQueryWithFilters above: same SQL mock, same expected query, the only difference being explicit chaining vs. filter-name suffixes. The genuinely new coverage here is filterValue(). Consider renaming to something like testSearchQueryWithChainedFilters to make the distinction clear.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@DenTray
DenTray merged commit c9fdad9 into master Aug 24, 2026
11 checks passed
@DenTray
DenTray deleted the 293-delete-deprecated branch August 24, 2026 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants