toContain('item.quickcommand') ->toContain('quickcommand.toLowerCase().includes(trimmed)'); }); it('ensures GlobalSearch clears search query when starting resource creation', function () { $globalSearchFile = file_get_contents(__DIR__.'/../../app/Livewire/GlobalSearch.php'); // Check that navigateToResourceCreation clears the search query expect($globalSearchFile) ->toContain('$this->searchQuery = \'\''); }); it('ensures GlobalSearch uses Livewire redirect method', function () { $globalSearchFile = file_get_contents(__DIR__.'/../../app/Livewire/GlobalSearch.php'); // Check that completeResourceCreation uses $this->redirect() expect($globalSearchFile) ->toContain('$this->redirect(route(\'project.resource.create\''); }); it('ensures docker-image item has quickcommand with new image', function () { $globalSearchFile = file_get_contents(__DIR__.'/../../app/Livewire/GlobalSearch.php'); // Check that Docker Image has the correct quickcommand expect($globalSearchFile) ->toContain("'name' => 'Docker Image'") ->toContain("'quickcommand' => '(type: new image)'") ->toContain("'type' => 'docker-image'"); });