You are here

public function ContentHubReindexTest::testIsReindexFailed in Acquia Content Hub 8

Test the isReindexFailed function.

@covers ::isReindexFailed

File

tests/src/Unit/Controller/ContentHubReindexTest.php, line 256

Class

ContentHubReindexTest
@coversDefaultClass \Drupal\acquia_contenthub\Controller\ContentHubReindex

Namespace

Drupal\Tests\acquia_contenthub\Unit\Controller

Code

public function testIsReindexFailed() {
  $this->reindexState = ContentHubReindex::REINDEX_FAILED;
  $this
    ->assertTrue($this->contentHubReindex
    ->isReindexFailed());
}