You are here

public function MixItUpFuncTest::testGetRowClasses in MixItUp Views 8.2

Same name and namespace in other branches
  1. 8 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 90

Class

MixItUpFuncTest
Class MixItUpFuncTest.

Namespace

Drupal\Tests\mixitup_views\Kernel

Code

public function testGetRowClasses() {

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