siteUrl config and Control Panel conflict
The siteUrl config setting is not meant to be added under environmentVariables.

'test.dev' =&gt; array(
    'siteUrl' =&gt; 'http://test.dev/',
    'environmentVariables' =&gt; array(
        // ...
    ),
    // ...
)