-
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
integration tests for the invite function #77
Conversation
@individual-it this PR branch needs to be rebased. |
0be5138
to
81a085b
Compare
81a085b
to
1e2a226
Compare
e77de3c
to
b039fea
Compare
$this->resourceToShare->invite([$this->einstein], $this->viewerRole); | ||
$this->resourceToShare->invite([$this->einstein], $this->viewerRole); |
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.
how about using anotherRole for second invite
$this->resourceToShare->invite([$this->einstein], $this->viewerRole); | |
$this->resourceToShare->invite([$this->einstein], $this->viewerRole); | |
$this->resourceToShare->invite([$this->einstein], $this->viewerRole); | |
$this->resourceToShare->invite([$this->einstein], $this->anotherRole); |
$this->assertSame($this->resourceToShare->getName(), $receivedShares[0]->getName()); | ||
} | ||
|
||
public function testInviteGroupAndUserOfTheGroup(): void |
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.
testInviteMultipleGroupWithCommonUser can be added too
I've added two more tests. Generally we have to find the right balance of testing here, we want to test all the code of the SDK including all edge cases we can think of, but on the other hand we don't need to test ocis in our tests. Testing if the API of ocis behaves correctly is part of the tests in ocis |
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
Some first tests for the invite function of resources.
This depends on owncloud/libre-graph-api#147 or resolution of the problem in ocis