You are here

public function ContentHubReindexTest::testSetReindexStateNone in Acquia Content Hub 8

Test the setReindexStateNone function.

@covers ::setReindexStateNone

File

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

Class

ContentHubReindexTest
@coversDefaultClass \Drupal\acquia_contenthub\Controller\ContentHubReindex

Namespace

Drupal\Tests\acquia_contenthub\Unit\Controller

Code

public function testSetReindexStateNone() {
  $this->reindexState = ContentHubReindex::REINDEX_FINISHED;
  $this->contentHubReindex
    ->setReindexStateNone();
  $this
    ->assertTrue($this->contentHubReindex
    ->isReindexNone());
}