Browse Source

8.2 deprecations from tests (#995)

pull/983/merge
Rosie Le Faive 1 year ago committed by GitHub
parent
commit
056695c79c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      tests/src/Functional/AddChildTest.php
  2. 7
      tests/src/Functional/JsonldSelfReferenceReactionTest.php
  3. 2
      tests/src/Kernel/FedoraAdapterTest.php

8
tests/src/Functional/AddChildTest.php

@ -9,13 +9,19 @@ namespace Drupal\Tests\islandora\Functional;
*/
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(),

7
tests/src/Functional/JsonldSelfReferenceReactionTest.php

@ -12,6 +12,13 @@ use function GuzzleHttp\json_decode;
*/
class JsonldSelfReferenceReactionTest extends IslandoraFunctionalTestBase {
/**
* An RDF Mapping object.
*
* @var \Drupal\rdf\Entity\RdfMapping
*/
protected $rdfMapping;
/**
* {@inheritdoc}
*/

2
tests/src/Kernel/FedoraAdapterTest.php

@ -354,7 +354,7 @@ class FedoraAdapterTest extends IslandoraKernelTestBase {
$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']}'");
}
/**

Loading…
Cancel
Save