-
Notifications
You must be signed in to change notification settings - Fork 68
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
Added feature to use custom methods for filtering #23
base: master
Are you sure you want to change the base?
Conversation
Hi xenco! Thanks for your first commit to the project! To help ensure that there is high quality code inside this project, you will note that we have automated testing. This is provided by a service called Travis. When a new pull request is made (or changes are made to a branch with a pull request), Travis will automatically try running the code base in a few different configurations. This automatic test has failed.
It appears that some of the logic for comparing fields in the database may be broken, as most of the tests have failed. To run these tests manually on your computer when developing, run these commands inside the project folder:
Also, feel free to ask for any help if you need it! |
It doesn't break the default functionality anymore. |
You actually should be able to do that. I don't think that doing a full test is really all that necessary. We only need to make sure that we correctly generate queries that we expect. We don't need to do an end to end test, as that would be the responsibility of the project that is adding this library as a dependency. Here is an example test that I have written: https://github.com/timgws/QueryBuilderParser/blob/master/tests/QueryBuilderParserTest.php#L272-L286 |
That being said, here is an instance where the project does test bindings: QueryBuilderParser/tests/JoinSupportingQueryBuilderParserTest.php Lines 310 to 330 in 7c13842
|
See the added part in README for further explanation.