/** * @group Api */ class Test_Controller_Api extends TestCase { protected static $url; public static function setUpBeforeClass() { \Config::get('phpunit', true); self::$url = \Config::get('phpunit.development.api_base_url') . \Config::get('phpunit.v1_uri'); } public function test_print_url() { echo self::$url . 'users/list.json'; } }
return array( 'development' => array( 'api_base_url' => 'http://localhost/', ), 'v1_uri' => 'api/v1/', );
oil test --group=ApiI get a bunch of errors because my url is incorrect, and the "echo" prints only "users/list.json" Any ideas what I may be doing wrong? Thank you, Onema
It looks like you're new here. If you want to get involved, click one of these buttons!