-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Unit tests #65
Unit tests #65
Conversation
…, Add tests for Assets namespace, Add missing ext-json requirement, Add tests folder to phpunit whitelist for correct calculation of test coverage
Really appreciate you jumping in to work on this. |
…wp translation functions to mock-api.php, Add dummy plugin structure for testing clover related code
In
I don't understand what exactly should be tested. But I would like to complete them ;) Another question I had in mind was if I could have a look at Clover itself. It would give me better insight into how Clover and Acorn work together. I could not find Clover in Roots repositories. This week the PR will be ready for review. I am only missing the |
Thanks again for your contributions. 🙌 We've added a lot more to Sage since I added those empty tests, but here are links to what I was intending to test: |
…s to mock-api.php
Added the tests that were marked incomplete and opened the PR for review. |
Thanks for all the work you put into this! 🙏 |
As mentioned in #1 I will add more unit tests to the code.
Tests added for following namespaces:
Roots\Acorn\Assets
Roots\Acorn\Clover
Roots\Acorn\Exceptions
I made as little changes to the code base as possible, I will document them here:
ext-json
tocomposer.json
asJsonSerializable
was in use<directory>./tests</directory>
to whitelist inphpunit.xml.dist
to correctly calculate coverageRoots\Acorn\Assets\RelativePathManifest
and fixed type hints inAssetManager.php
RelativePathManifest.php
and added missing array initializationAcorn/Bootstrap/LoadBindings.php
illuminate/http
and fixed type hint inAcorn/Exceptions/Handler.php
render
method