<?php

namespace Opentalent\OtCore\Tests\Unit\Service;

use Nimut\TestingFramework\TestCase\UnitTestCase;
use Opentalent\OtCore\Service\OpentalentEnvService;

class OpentalentEnvServiceTest extends UnitTestCase
{
    /**
     * get should return the requested variable default value,
     * or the overridden one if $GLOBALS have been set
     *
     * @test
     */
    public function get() {
        $GLOBALS['OT']['API_BASE_URI'] = 'https://local.api.opentalent.fr';
        $this->assertEquals('https://local.api.opentalent.fr', OpentalentEnvService::get('API_BASE_URI'));
    }
}
