Skip to content

Commit

Permalink
updates model tests to invoke getter/setters tests for nullable attri…
Browse files Browse the repository at this point in the history
…butes.
  • Loading branch information
stopfstedt committed Feb 13, 2024
1 parent 66418e5 commit d07af88
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion tests/Ilios/MeSH/Model/ConceptRelationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function tearDown(): void

public function testGetSetName(): void
{
$this->basicSetTest($this->object, 'name', 'string');
$this->basicSetTest($this->object, 'name', 'string', true);
}

public function testGetSetConcept1Ui(): void
Expand Down
10 changes: 5 additions & 5 deletions tests/Ilios/MeSH/Model/ConceptTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,27 +41,27 @@ public function testIsSetPreferred(): void

public function testGetSetCasn1Name(): void
{
$this->basicSetTest($this->object, 'casn1Name', 'string');
$this->basicSetTest($this->object, 'casn1Name', 'string', true);
}

public function testGetSetRegistryNumber(): void
{
$this->basicSetTest($this->object, 'registryNumber', 'string');
$this->basicSetTest($this->object, 'registryNumber', 'string', true);
}

public function testGetSetScopeNote(): void
{
$this->basicSetTest($this->object, 'scopeNote', 'string');
$this->basicSetTest($this->object, 'scopeNote', 'string', true);
}

public function testGetSetTranslatorsEnglishScopeNote(): void
{
$this->basicSetTest($this->object, 'translatorsEnglishScopeNote', 'string');
$this->basicSetTest($this->object, 'translatorsEnglishScopeNote', 'string', true);
}

public function testGetSetTranslatorsScopeNote(): void
{
$this->basicSetTest($this->object, 'translatorsScopeNote', 'string');
$this->basicSetTest($this->object, 'translatorsScopeNote', 'string', true);
}

public function testAddGetRelatedRegistryNumbers(): void
Expand Down
2 changes: 1 addition & 1 deletion tests/Ilios/MeSH/Model/DescriptorSetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function testConstructor(): void

public function testGetSetLanguageCode(): void
{
$this->basicSetTest($this->object, 'languageCode', 'string');
$this->basicSetTest($this->object, 'languageCode', 'string', true);
}

public function testAddGetDescriptors(): void
Expand Down
16 changes: 8 additions & 8 deletions tests/Ilios/MeSH/Model/DescriptorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ public function testGetSetDateCreated(): void

public function testGetSetDateRevised(): void
{
$this->basicSetTest($this->object, 'dateRevised', 'datetime');
$this->basicSetTest($this->object, 'dateRevised', 'datetime', true);
}

public function testGetSetDateEstablished(): void
{
$this->basicSetTest($this->object, 'dateEstablished', 'datetime');
$this->basicSetTest($this->object, 'dateEstablished', 'datetime', true);
}

public function testAddGetAllowableQualifiers(): void
Expand All @@ -56,27 +56,27 @@ public function testAddGetAllowableQualifiers(): void

public function testGetSetAnnotation(): void
{
$this->basicSetTest($this->object, 'annotation', 'string');
$this->basicSetTest($this->object, 'annotation', 'string', true);
}

public function testGetSetHistoryNote(): void
{
$this->basicSetTest($this->object, 'historyNote', 'string');
$this->basicSetTest($this->object, 'historyNote', 'string', true);
}

public function testNlmClassificationNumber(): void
{
$this->basicSetTest($this->object, 'nlmClassificationNumber', 'string');
$this->basicSetTest($this->object, 'nlmClassificationNumber', 'string', true);
}

public function testGetSetOnlineNote(): void
{
$this->basicSetTest($this->object, 'onlineNote', 'string');
$this->basicSetTest($this->object, 'onlineNote', 'string', true);
}

public function testGetSetPublicMeshNote(): void
{
$this->basicSetTest($this->object, 'publicMeshNote', 'string');
$this->basicSetTest($this->object, 'publicMeshNote', 'string', true);
}

public function testAddGetPreviousIndexing(): void
Expand All @@ -96,7 +96,7 @@ public function testAddGetRelatedDescriptors(): void

public function testGetSetConsiderAlso(): void
{
$this->basicSetTest($this->object, 'considerAlso', 'string');
$this->basicSetTest($this->object, 'considerAlso', 'string', true);
}

public function testAddGetPharmacologicalAction(): void
Expand Down
2 changes: 1 addition & 1 deletion tests/Ilios/MeSH/Model/EntryCombinationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ public function testGetSetQualifierIn(): void

public function testGetSetQualifierOut(): void
{
$this->modelSetTest($this->object, 'qualifierOut', 'Reference');
$this->modelSetTest($this->object, 'qualifierOut', 'Reference', true);

Check failure on line 48 in tests/Ilios/MeSH/Model/EntryCombinationTest.php

View workflow job for this annotation

GitHub Actions / Code Style (8.2)

Method Ilios\MeSH\Model\BaseTestCase::modelSetTest() invoked with 4 parameters, 3 required.

Check failure on line 48 in tests/Ilios/MeSH/Model/EntryCombinationTest.php

View workflow job for this annotation

GitHub Actions / Code Style (8.3)

Method Ilios\MeSH\Model\BaseTestCase::modelSetTest() invoked with 4 parameters, 3 required.
}
}
10 changes: 5 additions & 5 deletions tests/Ilios/MeSH/Model/TermTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@ public function testGetSetLexicalTag(): void

public function testGetSetAbbreviation(): void
{
$this->basicSetTest($this->object, 'abbreviation', 'string');
$this->basicSetTest($this->object, 'abbreviation', 'string', true);
}

public function testGetSetSortVersion(): void
{
$this->basicSetTest($this->object, 'sortVersion', 'string');
$this->basicSetTest($this->object, 'sortVersion', 'string', true);
}

public function testGetSetEntryVersion(): void
{
$this->basicSetTest($this->object, 'entryVersion', 'string');
$this->basicSetTest($this->object, 'entryVersion', 'string', true);
}

public function testAddGetThesaurusIds(): void
Expand All @@ -69,12 +69,12 @@ public function testAddGetThesaurusIds(): void

public function testGetSetNote(): void
{
$this->basicSetTest($this->object, 'note', 'string');
$this->basicSetTest($this->object, 'note', 'string', true);
}

public function testGetDateCreated(): void
{
$this->basicSetTest($this->object, 'dateCreated', 'datetime');
$this->basicSetTest($this->object, 'dateCreated', 'datetime', true);
}

public function testGetSetUi(): void
Expand Down

0 comments on commit d07af88

Please sign in to comment.