Quality of life. Removing a lot of requirements etc
This commit is contained in:
@ -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');
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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');
|
||||
|
Reference in New Issue
Block a user