Quality of life. Removing a lot of requirements etc

This commit is contained in:
2025-02-28 13:57:22 +00:00
parent e074e00c43
commit 2070c11050
13 changed files with 25 additions and 2889 deletions

View File

@ -13,6 +13,7 @@ use App\CommandBackup;
#[CoversClass(CommandBackup::class)]
final class CommandBackupTest extends \PHPUnit\Framework\TestCase
{
#[\Override]
protected function setUp(): void
{
if (! is_dir('temp')) {
@ -24,6 +25,7 @@ final class CommandBackupTest extends \PHPUnit\Framework\TestCase
exec('rclone test makefiles --files 10 temp/source 2>&1');
}
#[\Override]
protected function tearDown(): void
{
exec('rclone purge temp 2>&1');

View File

@ -22,6 +22,7 @@ final class NtfyTest extends TestCase
*/
private MockObject $client;
#[\Override]
protected function setUp(): void
{
$this->client = $this->createMock(Client::class);
@ -29,7 +30,7 @@ final class NtfyTest extends TestCase
}
/**
* @SuppressWarnings(PHPMD.StaticAccess)
* @SuppressWarnings("PHPMD.StaticAccess")
*/
public function testFactory(): void
{

View File

@ -10,11 +10,13 @@ use PHPUnit\Framework\TestCase;
final class RcloneTest extends TestCase
{
#[\Override]
protected function setUp(): void
{
exec('rclone test makefiles temp/source 2>&1');
}
#[\Override]
protected function tearDown(): void
{
exec('rclone purge temp 2>&1');