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.

494 B
Raw Blame
<?php

it('renders GlobalSearch database icons as image assets instead of raw logo HTML', function () {
    $globalSearchFile = file_get_contents(__DIR__.'/../../app/Livewire/GlobalSearch.php');
    $bladeFile = file_get_contents(__DIR__.'/../../resources/views/livewire/global-search.blade.php');

    expect($bladeFile)
        ->not->toContain('$item[\'logo_html\']')
        ->not->toContain('x-html="item.logo_html"');

    expect($globalSearchFile)->not->toContain("'logo_html' =>");
});