-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add unit tests #8
base: master
Are you sure you want to change the base?
Conversation
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
/$to
parsing ingetRecordings
could be moved to a separate method (code repetition, andgetRecordings
is kind of long and does a lot imo) - move
getAccessToken
to 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 |
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!
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!
@@ -236,51 +224,13 @@ private function fetchPaginatedData(string $uri, string $paginatedDataKey): arra | |||
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 install
composer test