UnionOfRAD/lithium — Issue #160: wrong env for test
Author: agborkowski
Created: 2011-10-13 16:07:48+00:00
State: open

I lost 2 days for found problem of configuration Adaptable for tests

I Environment::set('development'); @ bootstrap/action.php

Call stack for request http://pwi2.dev/test/app/tests/cases/models/QueuesTest

http://pwi2.dev/test/app/tests/cases/models/QueuesTest (suspended)
adapter(): /pwi2/libraries/lithium/core/Adaptable.php at line 296 [break]
adapter(): /pwi2/libraries/lithium/core/Adaptable.php at line 100
get(): /pwi2/libraries/lithium/data/Connections.php at line 170
/pwi2/app/config/bootstrap/errors.php at line 45
/pwi2/app/config/bootstrap.php at line 88
/pwi2/app/webroot/index.php at line 21

[break]
protected static function _config($name) {
$env = Environment::get();

method _config and $env return 'development' should be a 'test' !