Skip to content

Commit

Permalink
Slight refactor.
Browse files Browse the repository at this point in the history
Allow overriding of entity setup, looking to move embargoes set up the
tree.
  • Loading branch information
adam-vessey committed Apr 11, 2024
1 parent ad63a22 commit f29f33f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/src/Kernel/EmbargoAccessQueryTaggingAlterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* @group embargo
*/
class EmbargoAccessQueryTaggingAlterTest extends EmbargoKernelTestBase {

use DatabaseQueryTestTraits;

/**
Expand Down Expand Up @@ -101,6 +102,13 @@ class EmbargoAccessQueryTaggingAlterTest extends EmbargoKernelTestBase {
public function setUp(): void {
parent::setUp();

$this->setupEntities();
}

/**
* Helper; build out entities with which to test.
*/
protected function setupEntities() : void {
// Create two nodes one embargoed and one non-embargoed.
$this->embargoedNode = $this->createNode();
$this->embargoedMedia = $this->createMedia($this->embargoedFile = $this->createFile(), $this->embargoedNode);
Expand Down

0 comments on commit f29f33f

Please sign in to comment.