forked from aces/Loris
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[test/api] Add tests for getting instrument data from API.
The previous test was "incomplete" (it got the data but didn't do anything to verify it.) This adds real tests for the candidate instrument data endpoint now that Issue aces#8781 was fixed by PR#8796.
- Loading branch information
Showing
6 changed files
with
126 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
declare(strict_types=1); | ||
namespace LORIS\instruments; | ||
|
||
use \LORIS\Data\Scope; | ||
use \LORIS\Data\Type; | ||
use \LORIS\Data\Cardinality; | ||
|
||
/** | ||
* A DictionaryItem represents a description of a type of data | ||
* managed by LORIS. | ||
* | ||
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 | ||
*/ | ||
class DictionaryItem extends \LORIS\Data\Dictionary\DictionaryItem | ||
{ | ||
/** | ||
* Construct a DictionaryItem with the given parameters | ||
* | ||
* @param string $name The field name of the dictionary item | ||
* @param string $desc The dictionary item's description | ||
* @param Scope $scope The scope to which this DictionaryItem | ||
* applies | ||
* @param Type $t The data type of this dictionary item | ||
* @param Cardinality $c The data cardinality | ||
*/ | ||
public function __construct( | ||
string $name, | ||
string $desc, | ||
Scope $scope, | ||
Type $t, | ||
Cardinality $c, | ||
public readonly string $fieldname, | ||
) { | ||
parent::__construct($name, $desc, $scope, $t, $c); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters