title: How do I set laravel test to go to site name instead of localhost
body: <p>I am trying to write some tests for an application.  I have the server set up on MAMP going to dev.myappnamehere.com.</p>
  
  <p>When I run a test (based off of Laracasts Integrated) it fails because it is looking for the route</p>
  
  <pre><code> http://localhost/p/profile
  </code></pre>
  
  <p>But what it needs to go to is </p>
  
  <pre><code> http://dev.myappnamehere/p/profile
  </code></pre>
  
  <p>How can I change that so it does not default to looking for the localhost and instead goes to the correct path?</p>
  
  <p>I attempted to change this in the test but got nowhere and I was unable to located an answer through googling.</p>
  
  <pre><code> &lt;?php
  
   use Laracasts\Integrated\Extensions\Laravel as IntegrationTest;
   use Laracests\TestDummy\Factory as TestDummy;
  
   class ExampleTest extends TestCase {
  
  /**
   * A basic functional test example.
   *
   * @return void
   */
  public function testBasicExample()
  {
      $this-&gt;visit('/')
      -&gt;see('Login')
          -&gt;type('example@example.com', 'email')
          -&gt;type('password', 'password')
          -&gt;press('Login')
          -&gt;seePageIs('/p/profile');
    }
  
  }
  </code></pre>