You are here

public function MixItUpFuncTest::testGetRowClasses in MixItUp Views 8

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/MixItUpFuncTest.php \Drupal\Tests\mixitup_views\Kernel\MixItUpFuncTest::testGetRowClasses()

@covers \Drupal\mixitup_views\MixitupFunc::getRowClasses

File

tests/src/Kernel/MixItUpFuncTest.php, line 133

Class

MixItUpFuncTest
Class MixItUpFuncTest.

Namespace

Drupal\Tests\mixitup_views\Kernel

Code

public function testGetRowClasses() {

  // Check for equaling.
  self::assertEquals('tid_2 tid_3', $this->unit
    ->getRowClasses(5));
  self::assertEquals('tid_1 tid_4', $this->unit
    ->getRowClasses(4));
  self::assertEquals('tid_1 tid_5', $this->unit
    ->getRowClasses(3));
  self::assertEquals('tid_3 tid_4', $this->unit
    ->getRowClasses(2));
  self::assertEquals('tid_2 tid_4', $this->unit
    ->getRowClasses(1));
}