'mars', 'ip' => '10.9.9.9', 'ssh_port' => 22, 'status' => 'online']); $html = Blade::render(''); // Name (label + search), IP (hint + search) and the details href all reach the x-data. $this->assertStringContainsString('mars', $html); $this->assertStringContainsString('10.9.9.9', $html); // @js() emits a JS-escaped string literal, so assert on the (unescaped) uuid that // the details href is built from, plus the route segment it lands on. $this->assertStringContainsString($server->uuid, $html); $this->assertStringContainsString('servers', $html); } }