You are here

public function CarouselServiceTest::testGetStatuses in bootstrap simple carousel 8

Tests the getStatuses() method.

@covers ::getStatuses

File

tests/src/Unit/Service/CarouselServiceTest.php, line 95

Class

CarouselServiceTest
@coversDefaultClass \Drupal\bootstrap_simple_carousel\Service\CarouselService

Namespace

Drupal\Tests\bootstrap_simple_carousel\Unit\Service

Code

public function testGetStatuses() {
  $stringTranslation = $this
    ->createMock(TranslationInterface::class);
  $carouselService = new CarouselService($this->renderer, $this->entityTypeManager);
  $carouselService
    ->setStringTranslation($stringTranslation);
  $this
    ->assertSame(count([
    'Inactive',
    'Active',
  ]), count($carouselService
    ->getStatuses()));
}