Skip to content

Commit

Permalink
Implement coding-standard 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Dec 16, 2019
1 parent cc2a7a7 commit c2fa9b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions tests/unit/Db/TotpSecretMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,10 @@ protected function tearDown(): void {
}

/**
* @expectedException \OCP\AppFramework\Db\DoesNotExistException
*/
public function testGetNonExistSecret() {
$this->expectException(\OCP\AppFramework\Db\DoesNotExistException::class);

$user = \OC::$server->getUserManager()->get('user2');
$this->mapper->getSecret($user);
}
Expand Down Expand Up @@ -101,9 +102,10 @@ public function testSetAllSecretsVerificationStatus() {
}

/**
* @expectedException \OCP\AppFramework\Db\DoesNotExistException
*/
public function testDeleteSecretsByUserId() {
$this->expectException(\OCP\AppFramework\Db\DoesNotExistException::class);

$user = \OC::$server->getUserManager()->get('user1');
$secret = $this->mapper->getSecret($user);
$this->assertEquals($user->getUID(), $secret->getUserId());
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,5 +1,5 @@
{
"require": {
"owncloud/coding-standard": "^1.0"
"owncloud/coding-standard": "^2.0"
}
}

0 comments on commit c2fa9b5

Please sign in to comment.