You are here

protected function UserDataCdfAttributeTest::setUp in Acquia Content Hub 8.2

Overrides UnitTestCase::setUp

File

tests/src/Unit/EventSubscriber/CdfAttributes/UserDataCdfAttributeTest.php, line 43

Class

UserDataCdfAttributeTest
Tests the user data cdf attribute.

Namespace

Drupal\Tests\acquia_contenthub\Unit\EventSubscriber\CdfAttributes

Code

protected function setUp() {
  parent::setUp();
  $this->cdf = $this
    ->getMockBuilder(CDFObject::class)
    ->disableOriginalConstructor()
    ->setMethods(NULL)
    ->getMock();
  $this->dispatcher = new EventDispatcher();
  $this->dispatcher
    ->addSubscriber(new UserDataCdfAttribute());
}