Skip to content

Commit

Permalink
8.2 deprecations from tests (#995)
Browse files Browse the repository at this point in the history
  • Loading branch information
rosiel authored Nov 8, 2023
1 parent 4b2b9b2 commit 056695c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion tests/src/Kernel/FedoraAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ public function testRead() {

$metadata = $adapter->read('');
$this->assertFileMetadata($metadata);
$this->assertTrue($metadata['contents'] == "DERP", "Expecting 'content' of 'DERP', received '${metadata['contents']}'");
$this->assertTrue($metadata['contents'] == "DERP", "Expecting 'content' of 'DERP', received '{$metadata['contents']}'");
}

/**
Expand Down

0 comments on commit 056695c

Please sign in to comment.