-
Notifications
You must be signed in to change notification settings - Fork 436
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
Refactored tests #769
Refactored tests #769
Conversation
@@ -74,8 +74,8 @@ public function testIsReadable() | |||
|
|||
public function testFileExists() | |||
{ | |||
$this->assertTrue(file_exists(self::$dirUrl)); | |||
$this->assertTrue(file_exists(self::$fileUrl)); | |||
$this->assertFilExists(self::$dirUrl); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
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.
thanks for the contribution! definitely improves reporting failures. 👍
I've refactored more tests, this time using |
Use |
Use |
Check types with |
Use |
@carusogabriel let me know when you're finished. |
@jdpedrie I'm finished, sorry about many commits, I need to do some research. Do you want me to squash them? |
No problem at all. I just wanted to be sure I didn’t interrupt your work. Thanks for the contribution. You don’t need to squash it. |
I swear is the last one 😇 Use |
Source-Link: googleapis/googleapis@9fac84a Source-Link: googleapis/googleapis-gen@12ae1da Copy-Tag: eyJwIjoiQ29tcHV0ZS8uT3dsQm90LnlhbWwiLCJoIjoiMTJhZTFkYTdjMTM0NzJhMTFlMWE0YTYxODlhYWIxMGY3ODNjNTg1MyJ9
…#5802) * feat: Update Compute Engine API to revision 20221224 (#760) Source-Link: googleapis/googleapis@17d5613 Source-Link: googleapis/googleapis-gen@42cd552 Copy-Tag: eyJwIjoiQ29tcHV0ZS8uT3dsQm90LnlhbWwiLCJoIjoiNDJjZDU1MmZhNWJlOTViZTVjZTUxMzZiYTkzZTgzMzg4Yjc1OTFkOCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Update Compute Engine API to revision 20230103 (#769) Source-Link: googleapis/googleapis@9fac84a Source-Link: googleapis/googleapis-gen@12ae1da Copy-Tag: eyJwIjoiQ29tcHV0ZS8uT3dsQm90LnlhbWwiLCJoIjoiMTJhZTFkYTdjMTM0NzJhMTFlMWE0YTYxODlhYWIxMGY3ODNjNTg1MyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
…#5802) * feat: Update Compute Engine API to revision 20221224 (#760) Source-Link: googleapis/googleapis@17d5613 Source-Link: googleapis/googleapis-gen@42cd552 Copy-Tag: eyJwIjoiQ29tcHV0ZS8uT3dsQm90LnlhbWwiLCJoIjoiNDJjZDU1MmZhNWJlOTViZTVjZTUxMzZiYTkzZTgzMzg4Yjc1OTFkOCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Update Compute Engine API to revision 20230103 (#769) Source-Link: googleapis/googleapis@9fac84a Source-Link: googleapis/googleapis-gen@12ae1da Copy-Tag: eyJwIjoiQ29tcHV0ZS8uT3dsQm90LnlhbWwiLCJoIjoiMTJhZTFkYTdjMTM0NzJhMTFlMWE0YTYxODlhYWIxMGY3ODNjNTg1MyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
I've refactored several tests with
assertFileExists
andassertFileNotExists
,assertFalse
,assertTrue
,assertCount
,assertGreaterThan
,assertNull
andassertNotNull
methods.