View file sdark.mobi/vendor/xsolla/xsolla-sdk-php/tests/Integration/API/VirtualCurrencyTest.php

File size: 844B
<?php

namespace Xsolla\SDK\Tests\Integration\API;

/**
 * @group api
 */
class VirtualCurrencyTest extends AbstractAPITest
{
    public function testUpdateProjectVirtualCurrencySettings()
    {
        $this->xsollaClient->UpdateProjectVirtualCurrencySettings(array(
            'request' => array(
                'vc_name' => array(
                    'en' => 'name',
                ),
                'base' => array(
                    'USD' => 0.9,
                ),
                'min' => 0.01,
                'max' => 100.2,
                'default_currency' => 'USD',
            ),
            'project_id' => $this->projectId,
        ));
    }

    public function testGetProjectVirtualCurrencySettings()
    {
        $this->xsollaClient->GetProjectVirtualCurrencySettings(array('project_id' => $this->projectId));
    }
}