-
Notifications
You must be signed in to change notification settings - Fork 1
Add unit tests #8
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
base: master
Are you sure you want to change the base?
Conversation
krsriq
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.
This is coming together quite nicely! Just a couple of cleanup tasks.
Depending on how far you want to go with this, there are a couple of obvious refactoring opportunities here
- the
$from/$toparsing ingetRecordingscould be moved to a separate method (code repetition, andgetRecordingsis kind of long and does a lot imo) - move
getAccessTokento a separate class (kind of smelly that this can't be tested..)
65e9173 to
11ee4bd
Compare
Welcome to Codecov 🎉Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment. Thanks for integrating Codecov - We've got you covered ☂️ |
11ee4bd to
1092669
Compare
1092669 to
69a074c
Compare
|
Review again. I moved the |
krsriq
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.
Getting there - the main service class looks much cleaner now.
I've added a (now failing) test to make you aware of an issue that would not have become apparent without that test - see comments!
krsriq
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.
Found a couple more bugs.
After these are fixed I think we're done here!
| { | ||
| $response = $this->client->get($uri); | ||
| if ($response->getStatusCode() !== 200) { | ||
| throw new ZoomApiException(sprintf('Could not fetch Zoom paginated data for data key "%s", returned status "%s"', $paginatedDataKey, $response->getStatusCode()), 1695239983421); |
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.
This line is still suspiciously not covered by tests - and has a bug (guess you can find it on your own ;) ).
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.
Sollte jetzt gefixt sein, was meinst du? ;-)
Ich habe jetzt auch noch PHPStan hinzugefügt und Codesniffer
b0a1310 to
9fbf997
Compare
composer installcomposer test