Skip to content

Conversation

rimas-kudelis
Copy link
Contributor

@rimas-kudelis rimas-kudelis commented Oct 13, 2020

Q A
Bug fix? yes
New feature? no
BC breaks? yes: search terms no longer need or support explicit escaping, and consequently, regex special characters no longer behave like they're special.
Deprecations? no
Tickets Fixes #3754
License MIT
Doc PR N/A

@alanpoulain
Copy link
Member

Thanks!
Could you add a unit test too?

@rimas-kudelis
Copy link
Contributor Author

rimas-kudelis commented Oct 13, 2020

Thanks!
Could you add a unit test too?

Erm... if only I could understand how those tests work, or at least install composer dependencies...
I've added a new element to SearchFilterTest::provideApplyRestData(), but I strongly doubt that will be enough, will it? :)

EDIT: I've installed the dependencies, but how do I run the tests? Right now running ./vendor/bin/simple-phpunit fails a good bunch of them. Do I also need things like MySQL and MongoDB installed just to run them?

@soyuka
Copy link
Member

soyuka commented Oct 14, 2020

You need the mongodb php extension only if you want to test mongodb stuff. See https://github.com/api-platform/core/blob/master/CONTRIBUTING.md#tests for more informations on how to run tests.

@rimas-kudelis
Copy link
Contributor Author

I've added the test as requested.
Also added phpspec/prophecy to require-dev, because existing tests just failed without it.

@rimas-kudelis
Copy link
Contributor Author

Are we still waiting for something?

@alanpoulain alanpoulain merged commit a5bd35a into api-platform:2.5 Nov 19, 2020
@alanpoulain
Copy link
Member

Thank you @rimas-kudelis!

@rimas-kudelis
Copy link
Contributor Author

Thanks for merging! 👍

@rimas-kudelis rimas-kudelis deleted the patch-2 branch November 19, 2020 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants