public function MixItUpFuncTest::testGetNodeTids in MixItUp Views 8.2
Same name and namespace in other branches
- 8 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 102
Class
- MixItUpFuncTest
- Class MixItUpFuncTest.
Namespace
Drupal\Tests\mixitup_views\KernelCode
public function testGetNodeTids() {
// Check for equaling.
self::assertEquals([
0 => 2,
1 => 3,
], $this->testObject
->getNodeTids(5));
self::assertEquals([
0 => 1,
1 => 4,
], $this->testObject
->getNodeTids(4));
self::assertEquals([
0 => 1,
1 => 5,
], $this->testObject
->getNodeTids(3));
self::assertEquals([
0 => 3,
1 => 4,
], $this->testObject
->getNodeTids(2));
self::assertEquals([
0 => 2,
1 => 4,
], $this->testObject
->getNodeTids(1));
}