feat: driver license check for teamers
closes #869bup9vf
This commit is contained in:
1 parent
ebbefa0129
commit
20da6a0afc
32 files changed
+1095
-6
No files matched your search
@@ -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