protected static function setFromEnv() { $clientId = getenv('clientId'); $clientSecret = getenv('clientSecret'); if (!$clientId || !$clientSecret) { throw new Exception('Environment not configured for testing'); } \SpringSignage\Api\Api::setClientCredentials('test', $clientId, $clientSecret, new FileAccessTokenStore()); }
public function testHome() { self::setFromEnv(); $this->assertSame(["title" => "Spring Signage Customer Portal API", "error" => false, "status" => 200], (array) \SpringSignage\Api\Api::home()); }