|
|
@ -9,13 +9,19 @@ namespace Drupal\Tests\islandora\Functional; |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
class AddChildTest extends IslandoraFunctionalTestBase { |
|
|
|
class AddChildTest extends IslandoraFunctionalTestBase { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* The taxonomy term representing "Collection" items. |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @var \Drupal\taxonomy\TermInterface |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
protected $collectionTerm; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* {@inheritdoc} |
|
|
|
* {@inheritdoc} |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function setUp(): void { |
|
|
|
public function setUp(): void { |
|
|
|
parent::setUp(); |
|
|
|
parent::setUp(); |
|
|
|
|
|
|
|
|
|
|
|
$this->parent = |
|
|
|
|
|
|
|
$this->collectionTerm = $this->container->get('entity_type.manager')->getStorage('taxonomy_term')->create([ |
|
|
|
$this->collectionTerm = $this->container->get('entity_type.manager')->getStorage('taxonomy_term')->create([ |
|
|
|
'name' => 'Collection', |
|
|
|
'name' => 'Collection', |
|
|
|
'vid' => $this->testVocabulary->id(), |
|
|
|
'vid' => $this->testVocabulary->id(), |
|
|
|