Skip to content

Commit

Permalink
Merge pull request #72 from Learnosity/LRN-43018/BUG/fix-service-name
Browse files Browse the repository at this point in the history
[BUG] Rename author-aide to authoraide
  • Loading branch information
klauste authored Apr 2, 2024
2 parents 820f0ab + 6a4ae10 commit d26e587
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic
Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [v1.0.3] - 2024-04-07
### Added
- Rename author-aide to authoraide


## [v1.0.3] - 2024-03-07
### Added
Expand Down
6 changes: 3 additions & 3 deletions src/Request/Init.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Init
* Valid values (see also `$validServices`):
* - assess
* - author
* - author-aide
* - authoraide
* - data
* - events
* - items
Expand Down Expand Up @@ -110,7 +110,7 @@ class Init
* Service names that are valid for `$service`
* @var array
*/
private $validServices = ['assess', 'author', 'author-aide', 'data', 'events', 'items', 'questions', 'reports'];
private $validServices = ['assess', 'author', 'authoraide', 'data', 'events', 'items', 'questions', 'reports'];

/**
* @var SignatureFactory
Expand Down Expand Up @@ -247,7 +247,7 @@ public function generate(bool $encode = true)
$this->requestPacket;
break;
case 'author':
case 'author-aide':
case 'authoraide':
case 'items':
case 'reports':
// Add the security packet (with signature) to the output
Expand Down
2 changes: 1 addition & 1 deletion tests/Request/InitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ public static function getWorkingAuthorApiParams(bool $assoc = false): array
*/
public static function getWorkingAuthorAideApiParams(bool $assoc = false): array
{
$service = 'author-aide';
$service = 'authoraide';
$security = static::getSecurity();
$secret = static::TEST_CONSUMER_SECRET;
$request = [
Expand Down
6 changes: 3 additions & 3 deletions tests/SdkFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ public function buildInitDataProvider(): array
[
'error_message' => 'Argument securityPacket must be set',
'arguments' => [
'service' => 'author-aide'
'service' => 'authoraide'
]
]
],
'no secret set' => [
[
'error_message' => 'Argument secret must be set',
'arguments' => [
'service' => 'author-aide',
'service' => 'authoraide',
'securityPacket' => [
'domain' => 'test'
]
Expand All @@ -62,7 +62,7 @@ public function buildInitDataProvider(): array
'all required parameters set' => [
[
'arguments' => [
'service' => 'author-aide',
'service' => 'authoraide',
'securityPacket' => [
'domain' => 'test'
],
Expand Down

0 comments on commit d26e587

Please sign in to comment.