Skip to content

Commit

Permalink
Fix the faked view()->exists() since the changes in 8ccd4e0
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Dec 17, 2019
1 parent 68b5134 commit ea501f5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/FakesViews.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ protected function getContents($path)

public function exists($path)
{
return isset($this->rawContents[$path]);
return app('view.finder')->exists($path);
}
}

Expand All @@ -106,4 +106,9 @@ public function find($view)

return parent::find($view);
}

public function exists($path)
{
return isset($this->views[$path]);
}
}

0 comments on commit ea501f5

Please sign in to comment.