public function MixItUpFuncTest::testGetNodeTids in MixItUp Views 8
Same name and namespace in other branches
- 8.2 tests/src/Kernel/MixItUpFuncTest.php \Drupal\Tests\mixitup_views\Kernel\MixItUpFuncTest::testGetNodeTids()
@covers \Drupal\mixitup_views\MixitupFunc::getNodeTids
File
- tests/
src/ Kernel/ MixItUpFuncTest.php, line 145
Class
- MixItUpFuncTest
- Class MixItUpFuncTest.
Namespace
Drupal\Tests\mixitup_views\KernelCode
public function testGetNodeTids() {
// Check for equaling.
self::assertEquals([
0 => 2,
1 => 3,
], $this->unit
->getNodeTids(5));
self::assertEquals([
0 => 1,
1 => 4,
], $this->unit
->getNodeTids(4));
self::assertEquals([
0 => 1,
1 => 5,
], $this->unit
->getNodeTids(3));
self::assertEquals([
0 => 3,
1 => 4,
], $this->unit
->getNodeTids(2));
self::assertEquals([
0 => 2,
1 => 4,
], $this->unit
->getNodeTids(1));
}