3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-04-12 10:50:38 +00:00
Files
snipe-it/tests/Unit/Presenters/LicensePresenterTest.php

22 lines
446 B
PHP

<?php
namespace Tests\Unit\Presenters;
use App\Models\License;
use Tests\TestCase;
class LicensePresenterTest extends TestCase
{
public function test_dynamic_url()
{
$this->settings->set(['locale' => 'en-US']);
$license = License::factory()->create();
$this->assertEquals(
'https://example.com/en-US',
$license->present()->dynamicUrl('https://example.com/{LOCALE}')
);
}
}