File manager - Edit - /var/www/html/homologBancodetalentos/tests/Unit/TalentBank/CompanyLogoUrlTest.php
Back
<?php namespace Tests\Unit\TalentBank; use App\Http\Services\TalentBank\CompanyService; use Illuminate\Support\Facades\Storage; use Tests\TestCase; class CompanyLogoUrlTest extends TestCase { public function test_logo_public_url_points_to_public_disk(): void { Storage::fake('public'); Storage::disk('public')->put('talent_bank/company/test-logo.png', 'fake-image'); $url = CompanyService::logoPublicUrl('test-logo.png'); $this->assertNotNull($url); $this->assertStringContainsString('/storage/talent_bank/company/test-logo.png', $url); } public function test_logo_public_url_returns_null_for_empty_filename(): void { $this->assertNull(CompanyService::logoPublicUrl(null)); $this->assertNull(CompanyService::logoPublicUrl('')); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings