-
Notifications
You must be signed in to change notification settings - Fork 187
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
[tests-only][full-ci] implement DRY principle #6553
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
💥 Acceptance test localApiTests-apiContract-ocis failed. Further test are cancelled... |
e3a3176
to
89f7044
Compare
tests/acceptance/features/bootstrap/WebDavPropertiesContext.php
Outdated
Show resolved
Hide resolved
89f7044
to
fcefcfd
Compare
tests/acceptance/features/bootstrap/WebDavPropertiesContext.php
Outdated
Show resolved
Hide resolved
tests/acceptance/features/bootstrap/WebDavPropertiesContext.php
Outdated
Show resolved
Hide resolved
fcefcfd
to
6b2bfc6
Compare
6b2bfc6
to
be40ed1
Compare
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 a helper function and we should not save the response in any helpers - saving might lead to unexpected behaviors. We should only save response in the When steps.
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.
Same with this function
tests/acceptance/features/bootstrap/WebDavPropertiesContext.php
Outdated
Show resolved
Hide resolved
tests/acceptance/features/bootstrap/WebDavPropertiesContext.php
Outdated
Show resolved
Hide resolved
be40ed1
to
e6b8bec
Compare
95732de
to
2a644ba
Compare
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.
seems good refactor that the response is not set in the helper function but the step implementation. Overall LGTM 👍
9244f37
to
ad8f09d
Compare
ad8f09d
to
68a96d0
Compare
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.
Let's reduce the external dependency wherever posssible
tests/acceptance/features/bootstrap/WebDavPropertiesContext.php
Outdated
Show resolved
Hide resolved
tests/acceptance/features/bootstrap/WebDavPropertiesContext.php
Outdated
Show resolved
Hide resolved
740acfd
to
52ef34c
Compare
tests/acceptance/features/bootstrap/WebDavPropertiesContext.php
Outdated
Show resolved
Hide resolved
52ef34c
to
f2bc0c0
Compare
Kudos, SonarCloud Quality Gate passed! |
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.
LGTM
Description
This PR implements the DRY principle on the existing code.
Related Issue
Types of changes
Checklist: