10-04-2026

This commit is contained in:
Kevin Adametz 2026-04-10 17:18:17 +02:00
parent 4d6b4930b2
commit 4bb89aad8c
836 changed files with 52961 additions and 5950 deletions

View file

@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
use Illuminate\Foundation\Testing\RefreshDatabase;
uses(RefreshDatabase::class);
test('theme_image_url returns empty string for null or blank', function () {
expect(theme_image_url(null))->toBe('')
->and(theme_image_url(''))->toBe('')
->and(theme_image_url(' '))->toBe('');
});
test('theme_image_url returns legacy path for slash-separated theme paths', function () {
$url = theme_image_url('b2in/example.jpg');
expect($url)->toContain('img/assets/b2in/example.jpg');
});
test('theme_image_url passes through absolute http urls', function () {
$url = theme_image_url('https://example.org/x.webp');
expect($url)->toBe('https://example.org/x.webp');
});