Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: assertTableFilterExists to allow passing in a callback #15302

Conversation

chester-sykes
Copy link
Contributor

Description

I've refactored the assertTableFilterExists test function to allow you to pass a callback function, so that you can access the filter itself like you can do with the assertTableColumnExists.

I couldn't see assertTableFilterExists in the docs so I've added it in as well as docs on the new functionality.

I also couldn't see the stub anywhere so I've added that as well.

I think this feature will be useful if you want to test a specific part of your filter, for example making sure that the label is right.

Visual changes

No visual changes.

Functional changes

  • Code style has been fixed by running the composer cs command.
  • Changes have been tested to not break existing functionality.
  • Documentation is up-to-date.

@danharrin danharrin added the enhancement New feature or request label Jan 10, 2025
@danharrin danharrin added this to the v3 milestone Jan 10, 2025
@danharrin
Copy link
Member

Good spot, thanks

@danharrin danharrin merged commit 1717f0e into filamentphp:3.x Jan 10, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants