<?php

namespace App\Tests\Entity;

use App\Entity\Backup;
use PHPUnit\Framework\TestCase;

class BackupTest extends TestCase
{
    public function testGettersAndSetters()
    {
        $backup = new Backup();
        $now = new \DateTimeImmutable();
        $filePath = '/path/to/backup.zip';
        $errorMessage = 'Error occurred';
        $status = 'SUCCESS';

        $backup->setCreatedAt($now);
        $backup->setErrorMessage($errorMessage);
        $backup->setStatus($status);

        $this->assertSame($now, $backup->getCreatedAt());
        $this->assertEquals($errorMessage, $backup->getErrorMessage());
        $this->assertEquals($status, $backup->getStatus());
    }
}
