2015-06-05 07:23:50 -04:00
|
|
|
<?php
|
2025-05-17 11:08:33 -04:00
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
2015-06-05 07:23:50 -04:00
|
|
|
/**
|
2024-06-02 09:26:54 -04:00
|
|
|
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2015-06-05 07:23:50 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCA\Files_Versions\Tests\Command;
|
|
|
|
|
|
|
|
|
|
use OCA\Files_Versions\Command\Expire;
|
|
|
|
|
use Test\TestCase;
|
|
|
|
|
|
2015-11-25 10:58:54 -05:00
|
|
|
/**
|
|
|
|
|
* Class ExpireTest
|
|
|
|
|
*
|
|
|
|
|
* @group DB
|
|
|
|
|
*
|
|
|
|
|
* @package OCA\Files_Versions\Tests\Command
|
|
|
|
|
*/
|
2015-06-05 07:23:50 -04:00
|
|
|
class ExpireTest extends TestCase {
|
|
|
|
|
public function testExpireNonExistingUser(): void {
|
2015-09-28 10:38:01 -04:00
|
|
|
$command = new Expire($this->getUniqueID('test'), '');
|
2015-06-05 07:23:50 -04:00
|
|
|
$command->handle();
|
|
|
|
|
|
2018-01-25 05:23:12 -05:00
|
|
|
$this->addToAssertionCount(1);
|
2015-06-05 07:23:50 -04:00
|
|
|
}
|
|
|
|
|
}
|