toContain("'upload' => "); $html = Blade::render(''); expect($html) ->toContain('viewBox="0 0 24 24"') ->toContain('fill="currentColor"') ->toContain('menu-item-icon') ->not->toBe(''); }); it('uses the upload reicon for import backup in database configuration nav', function () { $contents = file_get_contents(resource_path('views/livewire/project/database/configuration.blade.php')); expect($contents) ->toContain("'label' => 'Import Backup'") ->toContain("'icon' => 'upload'"); }); it('uses the upload reicon for import backup in service database sidebar', function () { $contents = file_get_contents(resource_path('views/components/service-database/sidebar.blade.php')); expect($contents) ->toContain("'label' => 'Import Backup'") ->toContain("'icon' => 'upload'") ->not->toMatch("/'label' => 'Import Backup',\s*'route' => 'project\.service\.database\.import',\s*'icon' => 'storages'/s"); });