Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_versions/tests/ExpirationTest.php')
-rw-r--r--apps/files_versions/tests/ExpirationTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/files_versions/tests/ExpirationTest.php b/apps/files_versions/tests/ExpirationTest.php
index 1153d53bbaa..426d07e4b42 100644
--- a/apps/files_versions/tests/ExpirationTest.php
+++ b/apps/files_versions/tests/ExpirationTest.php
@@ -33,7 +33,7 @@ use PHPUnit\Framework\MockObject\MockObject;
class ExpirationTest extends \Test\TestCase {
const SECONDS_PER_DAY = 86400; //60*60*24
- public function expirationData(){
+ public function expirationData() {
$today = 100*self::SECONDS_PER_DAY;
$back10Days = (100-10)*self::SECONDS_PER_DAY;
$back20Days = (100-20)*self::SECONDS_PER_DAY;
@@ -106,7 +106,7 @@ class ExpirationTest extends \Test\TestCase {
* @param bool $quotaExceeded
* @param string $expectedResult
*/
- public function testExpiration($retentionObligation, $timeNow, $timestamp, $quotaExceeded, $expectedResult){
+ public function testExpiration($retentionObligation, $timeNow, $timestamp, $quotaExceeded, $expectedResult) {
$mockedConfig = $this->getMockedConfig($retentionObligation);
$mockedTimeFactory = $this->getMockedTimeFactory($timeNow);
@@ -117,7 +117,7 @@ class ExpirationTest extends \Test\TestCase {
}
- public function configData(){
+ public function configData() {
return [
[ 'disabled', null, null, null],
[ 'auto', Expiration::NO_OBLIGATION, Expiration::NO_OBLIGATION, true ],
@@ -141,7 +141,7 @@ class ExpirationTest extends \Test\TestCase {
* @param int $expectedMaxAge
* @param bool $expectedCanPurgeToSaveSpace
*/
- public function testParseRetentionObligation($configValue, $expectedMinAge, $expectedMaxAge, $expectedCanPurgeToSaveSpace){
+ public function testParseRetentionObligation($configValue, $expectedMinAge, $expectedMaxAge, $expectedCanPurgeToSaveSpace) {
$mockedConfig = $this->getMockedConfig($configValue);
$mockedTimeFactory = $this->getMockedTimeFactory(
time()
@@ -157,7 +157,7 @@ class ExpirationTest extends \Test\TestCase {
* @param int $time
* @return ITimeFactory|MockObject
*/
- private function getMockedTimeFactory($time){
+ private function getMockedTimeFactory($time) {
$mockedTimeFactory = $this->createMock(ITimeFactory::class);
$mockedTimeFactory->expects($this->any())
->method('getTime')
@@ -170,7 +170,7 @@ class ExpirationTest extends \Test\TestCase {
* @param string $returnValue
* @return IConfig|MockObject
*/
- private function getMockedConfig($returnValue){
+ private function getMockedConfig($returnValue) {
$mockedConfig = $this->createMock(IConfig::class);
$mockedConfig->expects($this->any())
->method('getSystemValue')