Skip to content

Commit

Permalink
Merge pull request #159 from owncloud/coding-standard-2.0.0
Browse files Browse the repository at this point in the history
Coding standard 2.0.0
  • Loading branch information
phil-davis authored Dec 17, 2019
2 parents 234434b + c2fa9b5 commit 895c798
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .drone.starlark
Original file line number Diff line number Diff line change
Expand Up @@ -1345,7 +1345,7 @@ def setupCeph(serviceParams):

createFirstBucket = serviceParams['createFirstBucket'] if 'createFirstBucket' in serviceParams else True
setupCommands = serviceParams['setupCommands'] if 'setupCommands' in serviceParams else [
'wait-for-it -t 120 ceph:80',
'wait-for-it -t 600 ceph:80',
'cd /var/www/owncloud/server/apps/files_primary_s3',
'cp tests/drone/ceph.config.php /var/www/owncloud/server/config',
'cd /var/www/owncloud/server',
Expand Down Expand Up @@ -1373,7 +1373,7 @@ def setupScality(serviceParams):
createFirstBucket = serviceParams['createFirstBucket'] if 'createFirstBucket' in serviceParams else True
createExtraBuckets = serviceParams['createExtraBuckets'] if 'createExtraBuckets' in serviceParams else False
setupCommands = serviceParams['setupCommands'] if 'setupCommands' in serviceParams else [
'wait-for-it -t 120 scality:8000',
'wait-for-it -t 600 scality:8000',
'cd /var/www/owncloud/server/apps/files_primary_s3',
'cp tests/drone/%s /var/www/owncloud/server/config' % configFile,
'cd /var/www/owncloud/server'
Expand Down
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 895c798

Please sign in to comment.