Calling named routes in laravel tests
<p>consider the following:</p>

<pre><code>&lt;?php

use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;

class HomeRouteTest extends TestCase
{
    public function testVisitTheHomePage()
    {
        $response = $this-&gt;call('GET', '/');
        $this-&gt;assertEquals(200, $response-&gt;status());

    }

    public function testVisitTheAboutPage()
    {
        $response = $this-&gt;call('GET', '/about');
        $this-&gt;assertEquals(200, $response-&gt;status());
    }
}
</code></pre>

<p>Is there away, not that I have seen documented >.>, to do something like:</p>

<pre><code>$response = $this-&gt;call('GET', 'home.about');
$this-&gt;assertEquals(200, $response-&gt;status());
</code></pre>

<p>Or .... Is that how you do it?</p>

<p>The error I get is:</p>

<pre><code>vagrant@scotchbox:/var/www$ phpunit
PHPUnit 4.8.21 by Sebastian Bergmann and contributors.

FF

Time: 3.41 seconds, Memory: 14.25Mb

There were 2 failures:

1) HomeRouteTest::testVisitTheHomePage
Failed asserting that 404 matches expected 200.

/var/www/tests/HomeRouteTest.php:12

2) HomeRouteTest::testVisitTheAboutPage
Failed asserting that 404 matches expected 200.

/var/www/tests/HomeRouteTest.php:19

FAILURES!
Tests: 2, Assertions: 2, Failures: 2.
</code></pre>