19 lines
464 B
PHP
19 lines
464 B
PHP
<?php
|
|
|
|
namespace Modules\Stylist\Tests\Feature;
|
|
|
|
use Modules\Stylist\Html\ThemeHtmlBuilder;
|
|
use Tests\TestCase;
|
|
|
|
final class ThemeHtmlBuilderTest extends TestCase
|
|
{
|
|
public function test_css_variables_are_rendered(): void
|
|
{
|
|
config(['stylist.fallback_variables.brand-primary' => '#111827']);
|
|
|
|
$html = app(ThemeHtmlBuilder::class)->variables()->toHtml();
|
|
|
|
$this->assertStringContainsString('--brand-primary: #111827;', $html);
|
|
}
|
|
}
|