0]); }); it('does not render canGate and canResource as HTML attributes', function () { $team = Team::factory()->create(['name' => 'leaky-team-name-7f3a', 'description' => 'leaky-team-description-7f3a']); $html = Blade::render(<<<'BLADE' BLADE, ['team' => $team]); expect($html) ->not->toContain('leaky-team-name-7f3a') ->not->toContain('leaky-team-description-7f3a') ->not->toContain('cangate') ->not->toContain('canGate') ->not->toContain('canresource') ->not->toContain('canResource') ->toContain('class="caller-class"') ->toContain('@confirm-old-key-deletion.window="modalOpen = true"') ->toContain('Delete team?'); });