You are here

public function ContentHubEntityExportControllerTest::testGetDrupalEntities in Acquia Content Hub 8

Tests getDrupalEntities method.

@covers ::getDrupalEntities

Throws

\Drupal\Core\Entity\EntityStorageException

File

tests/src/Unit/Controller/ContentHubEntityExportControllerTest.php, line 191

Class

ContentHubEntityExportControllerTest
Unit test for ContentHubEntityExportController class.

Namespace

Drupal\Tests\acquia_contenthub\Unit\Controller

Code

public function testGetDrupalEntities() {

  /** @var \Symfony\Component\HttpFoundation\JsonResponse $response */
  $response = $this->contentHubEntityExportController
    ->getDrupalEntities();
  $this
    ->assertEquals('{"entities":[]}', $response
    ->getContent());
}