public function ProjectApiTest::testGetProjectDetails in TMGMT Translator Smartling 8.4
Same name and namespace in other branches
- 8.2 api-sdk-php/tests/unit/ProjectApiTest.php \Smartling\Tests\Unit\ProjectApiTest::testGetProjectDetails()
- 8.2 vendor/smartling/api-sdk-php/tests/unit/ProjectApiTest.php \Smartling\Tests\Unit\ProjectApiTest::testGetProjectDetails()
- 8.3 vendor/smartling/api-sdk-php/tests/unit/ProjectApiTest.php \Smartling\Tests\Unit\ProjectApiTest::testGetProjectDetails()
@covers \Smartling\Project\ProjectApi::getProjectDetails
File
- vendor/
smartling/ api-sdk-php/ tests/ unit/ ProjectApiTest.php, line 15
Class
- ProjectApiTest
- Test class for Smartling\Project\ProjectsApi.
Namespace
Smartling\Tests\UnitCode
public function testGetProjectDetails() {
$endpointUrl = vsprintf('%s/%s/', [
ProjectApi::ENDPOINT_URL,
$this->projectId,
]);
$this->client
->expects($this
->any())
->method('request')
->with('get', $endpointUrl, [
'headers' => [
'Accept' => 'application/json',
'Authorization' => vsprintf('%s %s', [
$this->authProvider
->getTokenType(),
$this->authProvider
->getAccessToken(),
]),
],
'exceptions' => false,
'query' => [],
])
->willReturn($this->responseMock);
$this->object
->getProjectDetails();
}