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

Make sure view.compiled is correctly defined + tests #39

Merged
merged 1 commit into from
Mar 18, 2021

Conversation

afu-dev
Copy link

@afu-dev afu-dev commented Mar 18, 2021

Hello 👋

A problem reported by a laravel-bridge user on bref's Slack. This fix is to make sure the view.compiled variable is correctly defined and, if not, it's returning an understandable error.

I try to add to test case, BUT, I did not successfully reproduce the error encounter by the user. Laravel is throwing an error before I reach bref's Service Provider.

@mnapoli mnapoli added the bug Something isn't working label Mar 18, 2021
@mnapoli
Copy link
Member

mnapoli commented Mar 18, 2021

Thank you for the quick PR!

@mnapoli mnapoli merged commit 159ec6d into brefphp:master Mar 18, 2021
$this->assertEmpty($handler->getErrorOutput());
}

public function test make an error without view compiled path()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these tests actually getting run? method names cannot have spaces in. it's invalid syntax.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds like a terrible idea. Is certainly against the Symfony code style guide to do that. 🤣

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😛

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
works great ;)

mnapoli pushed a commit that referenced this pull request Mar 10, 2023
* Improve CI

* Do not export Codespell config

* Fix Spelling workflow

* rename

---------

Co-authored-by: Till Krüss <tillkruss@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants