From fc3019fad6cdb7558a33995bf152d22bf8cb190b Mon Sep 17 00:00:00 2001 From: ArlonAntonius <37894143+ArlonAntonius@users.noreply.github.com> Date: Wed, 20 Mar 2019 17:07:34 +0100 Subject: [PATCH] Change LoadsViewsTest to match expected values Laravel 5.8.5^ changed the filesystem slightly. This has caused errors in our tests for basically no reason. This quick fix simply fixes the values to a point where they should match correctly. --- tests/unit-tests/Filesystem/LoadsViewsTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/unit-tests/Filesystem/LoadsViewsTest.php b/tests/unit-tests/Filesystem/LoadsViewsTest.php index 3027391f..05c0bd9d 100644 --- a/tests/unit-tests/Filesystem/LoadsViewsTest.php +++ b/tests/unit-tests/Filesystem/LoadsViewsTest.php @@ -61,7 +61,7 @@ public function loads_additional_views() $this->assertTrue($this->views->exists('foo')); - $this->assertEquals('bar', $this->views->make('foo')->render()); + $this->assertEquals("bar\n", $this->views->make('foo')->render()); } /** @@ -80,7 +80,7 @@ public function loads_additional_views_overriding_global() $this->activateTenant(); - $this->assertEquals('bar', $this->views->make('welcome')->render()); + $this->assertEquals("bar\n", $this->views->make('welcome')->render()); } /** @@ -101,7 +101,7 @@ public function loads_additional_views_not_overriding_global() $this->activateTenant(); - $this->assertNotEquals('bar', $this->views->make('welcome')->render()); + $this->assertNotEquals("bar\n", $this->views->make('welcome')->render()); } /** @@ -122,7 +122,7 @@ public function loads_additional_views_with_namespace() $this->activateTenant(); - $this->assertNotEquals('bar', $this->views->make('welcome')->render()); - $this->assertEquals('bar', $this->views->make('tenant::welcome')->render()); + $this->assertNotEquals("bar\n", $this->views->make('welcome')->render()); + $this->assertEquals("bar\n", $this->views->make('tenant::welcome')->render()); } }