-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] Allow the use of temporary views for Blade testing on Windows m…
…achines (#37044) * Allow the use of temporary views for Blade testing on Windows machines * Fix StyleCI issue * Add first test for InteractsWithViews trait * Fix StyleCI issues * Update InteractsWithViews.php Co-authored-by: Taylor Otwell <taylor@laravel.com>
- Loading branch information
1 parent
aa1f47e
commit 856cdba
Showing
2 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
tests/Foundation/Testing/Concerns/InteractsWithViewsTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace Illuminate\Tests\Foundation\Testing\Concerns; | ||
|
||
use Illuminate\Foundation\Testing\Concerns\InteractsWithViews; | ||
use Orchestra\Testbench\TestCase; | ||
|
||
class InteractsWithViewsTest extends TestCase | ||
{ | ||
use InteractsWithViews; | ||
|
||
public function testBladeCorrectlyRendersString() | ||
{ | ||
$string = (string) $this->blade('@if(true)test @endif'); | ||
|
||
$this->assertEquals('test ', $string); | ||
} | ||
} |