feat: driver license check for teamers
closes #869bup9vf
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Tests\Security\RequiredCheck;
|
||||
|
||||
use App\Entity\Upload;
|
||||
use App\Model\DriverLicenseCheckDto;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class DriverLicenseCheckDtoTest extends TestCase
|
||||
{
|
||||
public function testKeepsNewStatus(): void
|
||||
{
|
||||
$upload = (new Upload())
|
||||
->setType(Upload::TYPE_DRIVER_LICENSE)
|
||||
->setStatus(Upload::STATUS_NEW)
|
||||
;
|
||||
|
||||
$dto = new DriverLicenseCheckDto($upload);
|
||||
|
||||
$this->assertSame(Upload::STATUS_NEW, $dto->getStatus());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user