You are here

public function ContentHubReindexTest::testSetReindexStateFailed in Acquia Content Hub 8

Test the setReindexStateFailed function.

@covers ::setReindexStateFailed

File

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

Class

ContentHubReindexTest
@coversDefaultClass \Drupal\acquia_contenthub\Controller\ContentHubReindex

Namespace

Drupal\Tests\acquia_contenthub\Unit\Controller

Code

public function testSetReindexStateFailed() {
  $this->reindexState = ContentHubReindex::REINDEX_NONE;
  $this->contentHubReindex
    ->setReindexStateFailed();
  $this
    ->assertTrue($this->contentHubReindex
    ->isReindexFailed());
}