You are here

public function ContentHubReindexTest::testSetReindexStateSent in Acquia Content Hub 8

Test the setReindexStateSent function.

@covers ::setReindexStateSent

File

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

Class

ContentHubReindexTest
@coversDefaultClass \Drupal\acquia_contenthub\Controller\ContentHubReindex

Namespace

Drupal\Tests\acquia_contenthub\Unit\Controller

Code

public function testSetReindexStateSent() {
  $this->reindexState = ContentHubReindex::REINDEX_NONE;
  $this->contentHubReindex
    ->setReindexStateSent();
  $this
    ->assertTrue($this->contentHubReindex
    ->isReindexSent());
}