12 lines
370 B
PHP
12 lines
370 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
use App\Services\Advertising\BannerUploadPolicy;
|
||
|
|
|
||
|
|
it('defines max bytes, allowed formats and human-readable max size', function () {
|
||
|
|
expect(BannerUploadPolicy::MAX_BYTES)->toBe(153600)
|
||
|
|
->and(BannerUploadPolicy::FORMATS)->toContain('jpg', 'png', 'gif')
|
||
|
|
->and(BannerUploadPolicy::humanMaxSize())->toBe('150 КБ');
|
||
|
|
});
|