I am trying to write some tests for an application. I have the server set up on MAMP going to dev.myappnamehere.com.
When I run a test (based off of Laracasts Integrated) it fails because it is looking for the route
http://localhost/p/profile
But what it needs to go to is
http://dev.myappnamehere/p/profile
How can I change that so it does not default to looking for the localhost and instead goes to the correct path?
I attempted to change this in the test but got nowhere and I was unable to located an answer through googling.
<?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->visit('/')
->see('Login')
->type('example@example.com', 'email')
->type('password', 'password')
->press('Login')
->seePageIs('/p/profile');
}
}