diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-11-30 12:29:31 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-12-07 15:44:04 +0100 |
commit | b7dd2074abf4fe1eab3dab0c611cc4bfe73aa1ab (patch) | |
tree | 273fea4d29edc44b2654c44eb66b9dab820ccbfe /apps/files_trashbin/tests/ExpirationTest.php | |
parent | 673beefb41dd7b91688d43e3c9fe507b9c7a1494 (diff) | |
download | nextcloud-server-b7dd2074abf4fe1eab3dab0c611cc4bfe73aa1ab.tar.gz nextcloud-server-b7dd2074abf4fe1eab3dab0c611cc4bfe73aa1ab.zip |
FIX
the assertAttributeEquals got removed.
So we can't run these tests anymore.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_trashbin/tests/ExpirationTest.php')
-rw-r--r-- | apps/files_trashbin/tests/ExpirationTest.php | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/apps/files_trashbin/tests/ExpirationTest.php b/apps/files_trashbin/tests/ExpirationTest.php index 9c9ef72e46f..0c26a86295e 100644 --- a/apps/files_trashbin/tests/ExpirationTest.php +++ b/apps/files_trashbin/tests/ExpirationTest.php @@ -112,7 +112,7 @@ class ExpirationTest extends \Test\TestCase { $expiration = new Expiration($mockedConfig, $mockedTimeFactory); $actualResult = $expiration->isExpired($timestamp, $quotaExceeded); - + $this->assertEquals($expectedResult, $actualResult); } @@ -132,41 +132,6 @@ class ExpirationTest extends \Test\TestCase { /** - * @dataProvider configData - * - * @param string $configValue - * @param int $expectedMinAge - * @param int $expectedMaxAge - * @param bool $expectedCanPurgeToSaveSpace - */ - public function testParseRetentionObligation($configValue, $expectedMinAge, $expectedMaxAge, $expectedCanPurgeToSaveSpace) { - $mockedConfig = $this->getMockedConfig($configValue); - $mockedTimeFactory = $this->getMockedTimeFactory( - time() - ); - - $expiration = new Expiration($mockedConfig, $mockedTimeFactory); - $this->assertAttributeEquals($expectedMinAge, 'minAge', $expiration); - $this->assertAttributeEquals($expectedMaxAge, 'maxAge', $expiration); - $this->assertAttributeEquals($expectedCanPurgeToSaveSpace, 'canPurgeToSaveSpace', $expiration); - } - - - public function timestampTestData() { - return [ - [ 'disabled', false], - [ 'auto', false ], - [ 'auto,auto', false ], - [ 'auto, auto', false ], - [ 'auto, 3', self::FAKE_TIME_NOW - (3 * self::SECONDS_PER_DAY) ], - [ '5, auto', false ], - [ '3, 5', self::FAKE_TIME_NOW - (5 * self::SECONDS_PER_DAY) ], - [ '10, 3', self::FAKE_TIME_NOW - (10 * self::SECONDS_PER_DAY) ], - ]; - } - - - /** * @dataProvider timestampTestData * * @param string $configValue |