-
Notifications
You must be signed in to change notification settings - Fork 261
Added changeDevelopmentMode & getAnalyticsDashboard to Zones #32
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
Conversation
|
Could you run linter? (Fixing CI) Thanks |
|
+1 @thellimist @MeekLogic - Thanks for contributing. Could you also make sure you add an associated test for this method in tests/Endpoints/ZonesTest.php ? Thanks! |
|
Just seen this, will add the appropriate test shortly. EDIT: Might be stupid but I think I made a proper test but I don't really know how to test. |
Added PHPUnit test (I think?)
|
OK, thanks @MeekLogic. All that's left is to fix the build - could you please run Alternatively if you cd into the project directory, you can probably get away with just running something like:
|
|
@IcyApril Thank you very much for pointing me in the right direction. Threw the PHP CS Fixer PHAR in the directory and ran the command and it worked like magic! Side note: What environment (OS) are you using? Or is this like some Docker thing lol. I need to get with this CI/CD stuff. |
|
We're using Travis CI. https://github.com/cloudflare/cloudflare-php/blob/master/.travis.yml Hope this answers your question. Thanks |
Renamed toggleDevelopmentMode to changeDevelopmentMode to be uniform
|
Thanks @thellimist but I could have gathered that information. What I could not ascertain is what is required of someone to issue those commands within their local environment. |
IcyApril
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
string $since = "-10080", string $until = "0"
Should these be integers or strings?
|
@MeekLogic Try switching to assertObjectHasAttribute as is the case in testListZones: |
|
@IcyApril I believe strings, in the curl example he sends timestamp values
|
|
Yeah, that should be fine. We should just make sure the tests are appropriate. |
|
Installing PHPMD within VSCode to fix those pesky errors. Edit: It doesn't like the boolean parameters for some reason
|
No description provided.