Skip to content

Commit

Permalink
Merge pull request #36580 from owncloud/coding-standard-2.0.0
Browse files Browse the repository at this point in the history
Implement coding-standard 2.0.0
  • Loading branch information
individual-it committed Dec 12, 2019
2 parents 73dfc5b + 93eb7f5 commit 5b1c76c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ public function testGetHTTPMethodsForPublic() {
}

/**
* @expectedException \Sabre\DAV\Exception\MethodNotAllowed
*/
public function testHttpLockForPublicWithoutLocks() {
$this->expectException(\Sabre\DAV\Exception\MethodNotAllowed::class);

$this->matcher->method('__invoke')->willReturn(true);

$request = $this->createMock(RequestInterface::class);
Expand All @@ -71,9 +72,10 @@ public function testHttpLockForPublicWithoutLocks() {
}

/**
* @expectedException \Sabre\DAV\Exception\Locked
*/
public function testHttpLockForPublicWithLocks() {
$this->expectException(\Sabre\DAV\Exception\Locked::class);

$this->matcher->method('__invoke')->willReturn(true);

$request = $this->createMock(RequestInterface::class);
Expand All @@ -89,9 +91,10 @@ public function testHttpLockForPublicWithLocks() {
}

/**
* @expectedException \Sabre\DAV\Exception\MethodNotAllowed
*/
public function testHttpUnlockForPublic() {
$this->expectException(\Sabre\DAV\Exception\MethodNotAllowed::class);

$this->matcher->method('__invoke')->willReturn(true);

$request = $this->createMock(RequestInterface::class);
Expand Down
3 changes: 2 additions & 1 deletion apps/dav/tests/unit/TrashBin/RootCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ public function testGetChildForPrincipal() {
}

/**
* @expectedException \Sabre\DAV\Exception\NotAuthenticated
*/
public function testGetChildForPrincipalWithUnauthorizedUser() {
$this->expectException(\Sabre\DAV\Exception\NotAuthenticated::class);

$user = $this->createMock(IUser::class);
$user->method('getUID')->willReturn('john');
$userSession = $this->createMock(IUserSession::class);
Expand Down
2 changes: 1 addition & 1 deletion vendor-bin/owncloud-codestyle/composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"require": {
"owncloud/coding-standard": "^1.0"
"owncloud/coding-standard": "^2.0"
}
}

0 comments on commit 5b1c76c

Please sign in to comment.