File size: 577 Bytes
5f32fbd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | <?php
declare(strict_types=1);
test('text', function () {
$expectedValue = <<<'HTML'
<input class="form-control" name="foo"
:id="$id('text-input')"
type="text"
/>
HTML;
expect($this->blade('<x-form.text name="foo" />'))->seeHtml($expectedValue);
});
test('text for livewire', function () {
$expectedValue = <<<'HTML'
<input class="form-control" wire:model="foo.bar"
:id="$id('text-input')"
type="text"
/>
HTML;
expect($this->blade($expectedValue))->seeHtml($expectedValue);
});
|