Skip to content

Commit

Permalink
Declare properties so they aren't dynamic.
Browse files Browse the repository at this point in the history
  • Loading branch information
rosiel committed Nov 8, 2023
1 parent 6244c07 commit 1e6c6f2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/src/Functional/AddChildTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,19 @@
*/
class AddChildTest extends IslandoraFunctionalTestBase {

/**
* The taxonomy term representing "Collection" items.
*
* @var \Drupal\taxonomy\TermInterface
*/
protected $collectionTerm;

/**
* {@inheritdoc}
*/
public function setUp(): void {
parent::setUp();

$this->parent =
$this->collectionTerm = $this->container->get('entity_type.manager')->getStorage('taxonomy_term')->create([
'name' => 'Collection',
'vid' => $this->testVocabulary->id(),
Expand Down
7 changes: 7 additions & 0 deletions tests/src/Functional/JsonldSelfReferenceReactionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
*/
class JsonldSelfReferenceReactionTest extends IslandoraFunctionalTestBase {

/**
* An RDF Mapping object.
*
* @var \Drupal\rdf\Entity\RdfMapping
*/
protected $rdfMapping;

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit 1e6c6f2

Please sign in to comment.