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_versions/tests | |
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_versions/tests')
-rw-r--r-- | apps/files_versions/tests/ExpirationTest.php | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/apps/files_versions/tests/ExpirationTest.php b/apps/files_versions/tests/ExpirationTest.php index 6ed1fd74591..d6d057e29a5 100644 --- a/apps/files_versions/tests/ExpirationTest.php +++ b/apps/files_versions/tests/ExpirationTest.php @@ -118,42 +118,6 @@ class ExpirationTest extends \Test\TestCase { } - public function configData() { - return [ - [ 'disabled', null, null, null], - [ 'auto', Expiration::NO_OBLIGATION, Expiration::NO_OBLIGATION, true ], - [ 'auto,auto', Expiration::NO_OBLIGATION, Expiration::NO_OBLIGATION, true ], - [ 'auto, auto', Expiration::NO_OBLIGATION, Expiration::NO_OBLIGATION, true ], - [ 'auto, 3', Expiration::NO_OBLIGATION, 3, true ], - [ '5, auto', 5, Expiration::NO_OBLIGATION, true ], - [ '3, 5', 3, 5, false ], - [ '10, 3', 10, 10, false ], - [ 'g,a,r,b,a,g,e', Expiration::NO_OBLIGATION, Expiration::NO_OBLIGATION, true ], - [ '-3,8', Expiration::NO_OBLIGATION, Expiration::NO_OBLIGATION, true ] - ]; - } - - - /** - * @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); - } - /** * @param int $time * @return ITimeFactory|MockObject |