You are here

public function EntityFormTest::setUp in Acquia Content Hub 8

Overrides UnitTestCase::setUp

File

tests/src/Unit/Form/EntityFormTest.php, line 43

Class

EntityFormTest
PHPUnit test for the EntityForm class.

Namespace

Drupal\Tests\acquia_contenthub\Unit\Form

Code

public function setUp() : void {
  parent::setUp();
  $this->currentUser = $this
    ->createMock('Drupal\\Core\\Session\\AccountInterface');
  $this->contentHubEntitiesTracking = $this
    ->getMockBuilder('Drupal\\acquia_contenthub\\ContentHubEntitiesTracking')
    ->disableOriginalConstructor()
    ->getMock();
  $this->entityForm = new EntityForm($this->currentUser, $this->contentHubEntitiesTracking);
}