Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to test blade views #14

Merged
merged 1 commit into from
Jan 3, 2024
Merged

Conversation

helloiamlukas
Copy link
Contributor

@helloiamlukas helloiamlukas commented Sep 20, 2023

This pull request allows the use of the assertHtml5, assertElementExists and assertFormExists functions on Illuminate\Testing\TestView objects.

This adds the possibility to test Blade views. Example:

$this->view('navigation')
    ->assertElementExists('nav > ul', function(AssertElement $ul) {
        $ul->contains('li', [
            'class' => 'active',
        ]);
    });

@sinnbeck sinnbeck merged commit 14364cc into sinnbeck:main Jan 3, 2024
20 checks passed
@sinnbeck
Copy link
Owner

sinnbeck commented Jan 3, 2024

Sorry for the late merge. But thanks for the very thorough PR with nice features and tests!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants