You are here

public function ContentHubReindexTest::testSetReindexStateFinished in Acquia Content Hub 8

Test the setReindexStateFinished function.

@covers ::setReindexStateFinished

File

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

Class

ContentHubReindexTest
@coversDefaultClass \Drupal\acquia_contenthub\Controller\ContentHubReindex

Namespace

Drupal\Tests\acquia_contenthub\Unit\Controller

Code

public function testSetReindexStateFinished() {
  $this->reindexState = ContentHubReindex::REINDEX_NONE;
  $this->contentHubReindex
    ->setReindexStateFinished();
  $this
    ->assertTrue($this->contentHubReindex
    ->isReindexFinished());
}