Laravel unit test always expects route? can't we give a public file URL?
<p>Received status code 404 while I was trying to test a file "test/index.php" in public folder, as below:</p>

<pre><code>$this-&gt;visit('http://localhost.com/test')
     -&gt;see('Hello');
</code></pre>

<p>There is index.php file within the test folder. I am able to access test in my browser via <code>localhost.com/test/</code>.</p>

<p>Does unit testing in Laravel always expects only route? like <code>-&gt;visit(some route)</code>? Can we even test public folder files? </p>

<p>Any information you can provide me would be greatly appreciated</p>