public function BaseApiAbstractTest::testNoUserAgentExtensions in TMGMT Translator Smartling 8.3
Same name and namespace in other branches
- 8.4 vendor/smartling/api-sdk-php/tests/unit/BaseApiAbstractTest.php \Smartling\Tests\Unit\BaseApiAbstractTest::testNoUserAgentExtensions()
Test default user agent.
File
- vendor/
smartling/ api-sdk-php/ tests/ unit/ BaseApiAbstractTest.php, line 23
Class
Namespace
Smartling\Tests\UnitCode
public function testNoUserAgentExtensions() {
$instance = FileApi::create($this->authProvider, 'test');
$http_client = $this
->invokeMethod($instance, 'getHttpClient');
$this
->assertTrue(strpos($http_client
->getConfig()['headers']['User-Agent'], 'smartling-api-sdk-php/3.6.2 (no extensions) GuzzleHttp/6') !== FALSE);
}