Skip to content

Commit

Permalink
- Glossary API test update
Browse files Browse the repository at this point in the history
  • Loading branch information
bhdnb committed Jan 15, 2025
1 parent cb0ae8f commit 48c9862
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 23 deletions.
1 change: 0 additions & 1 deletion src/CrowdinApiClient/Model/GlossaryConcept.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ static function (array $languageDetails): GlossaryLanguageDetails {
);
$this->createdAt = (string)$this->getDataProperty('createdAt');
$this->updatedAt = (string)$this->getDataProperty('updatedAt');

}

public function getId(): int
Expand Down
52 changes: 30 additions & 22 deletions tests/CrowdinApiClient/Api/GlossaryApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public function testConcordance(): void
'Welcome!',
'Save as...',
'View',
'About...'
'About...',
],
];

Expand Down Expand Up @@ -543,12 +543,14 @@ public function testListConcepts(): void
'url' => 'URL',
'figure' => 'Figure',
'languagesDetails' => [
'languageId' => 'en',
'userId' => 12,
'definition' => 'Language definition',
'note' => 'Language note',
'createdAt' => '2019-09-19T14:14:00+00:00',
'updatedAt' => '2019-09-19T14:14:00+00:00',
[
'languageId' => 'en',
'userId' => 12,
'definition' => 'Language definition',
'note' => 'Language note',
'createdAt' => '2019-09-19T14:14:00+00:00',
'updatedAt' => '2019-09-19T14:14:00+00:00',
],
],
'createdAt' => '2019-09-16T13:42:04+00:00',
'updatedAt' => '2019-09-16T13:42:04+00:00',
Expand Down Expand Up @@ -589,12 +591,14 @@ public function testGetConcept(): void
'url' => 'URL',
'figure' => 'Figure',
'languagesDetails' => [
'languageId' => 'en',
'userId' => 12,
'definition' => 'Language definition',
'note' => 'Language note',
'createdAt' => '2019-09-19T14:14:00+00:00',
'updatedAt' => '2019-09-19T14:14:00+00:00',
[
'languageId' => 'en',
'userId' => 12,
'definition' => 'Language definition',
'note' => 'Language note',
'createdAt' => '2019-09-19T14:14:00+00:00',
'updatedAt' => '2019-09-19T14:14:00+00:00',
],
],
'createdAt' => '2019-09-16T13:42:04+00:00',
'updatedAt' => '2019-09-16T13:42:04+00:00',
Expand All @@ -620,9 +624,11 @@ public function testUpdateConcept(): void
'url' => 'URL',
'figure' => 'Figure',
'languagesDetails' => [
'languageId' => 'en',
'definition' => 'Language definition',
'note' => 'Language note',
[
'languageId' => 'en',
'definition' => 'Language definition',
'note' => 'Language note',
],
],
];

Expand All @@ -640,12 +646,14 @@ public function testUpdateConcept(): void
'url' => 'URL',
'figure' => 'Figure',
'languagesDetails' => [
'languageId' => 'en',
'userId' => 12,
'definition' => 'Language definition',
'note' => 'Language note',
'createdAt' => '2019-09-19T14:14:00+00:00',
'updatedAt' => '2019-09-19T14:14:00+00:00',
[
'languageId' => 'en',
'userId' => 12,
'definition' => 'Language definition',
'note' => 'Language note',
'createdAt' => '2019-09-19T14:14:00+00:00',
'updatedAt' => '2019-09-19T14:14:00+00:00',
],
],
'createdAt' => '2019-09-16T13:42:04+00:00',
'updatedAt' => '2019-09-16T13:42:04+00:00',
Expand Down

0 comments on commit 48c9862

Please sign in to comment.