Skip to content
Ian Olson edited this page Jun 18, 2015 · 5 revisions

As much as possible, the Integrated package is setup to work with as little configuration as possible. That said, a few areas may require your configuration. In these situations, create a integrated.json file within the root of your project.

The Base URL

While the Laravel extension does not require a server to be running, both Goutte and Selenium do. You may set a baseUrl in your test classes...

protected $baseUrl = 'http://localhost:1234';

Or, you may set this in integrated.json.

{
    "baseUrl": "http://localhost:1234"
}

Database Credentials

The Laravel extension is smart enough to use your existing credentials and configuration. For Goutte or Selenium, however, you'll need to tell Integrated about your database connection, username, and password.

Please note that this is only necessary, if you intend to use the seeInDatabase method.

Here's an example that uses an SQLite database.

{
    "baseUrl": "http://localhost:8888",

    "pdo": {
        "connection": "sqlite:storage/database.sqlite",
        "username": "",
        "password": ""
    }
}

Or, if you use MySQL, you might do:

{
    "pdo": {
        "connection": "mysql:host=localhost;dbname=myDatabase",
        "username": "homestead",
        "password": "secret"
    }
}

Selenium

By default, your Selenium tests will use Firefox, however, you're free to change this. Perhaps you've setup PhantomJS and would prefer to use that. Okay:

{
    "baseUrl": "http://localhost:8888",

    "selenium": {
        "browser": "phantomjs"
    }
}
Clone this wiki locally