Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

526 B
Raw Blame
<?php

it('renders action content from both contents and actions slots', function () {
    $contents = $this->blade(
        '<x-empty title="Empty" icon-name="keys"><x-slot:contents><button type="button">From contents</button></x-slot:contents></x-empty>'
    );
    $contents->assertSee('From contents');

    $actions = $this->blade(
        '<x-empty title="Empty" icon-name="keys"><x-slot:actions><button type="button">From actions</button></x-slot:actions></x-empty>'
    );
    $actions->assertSee('From actions');
});