public function ContextualUnitTest::testContextualIdToLinks in Drupal 8
Same name and namespace in other branches
- 9 core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php \Drupal\Tests\contextual\Kernel\ContextualUnitTest::testContextualIdToLinks()
- 10 core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php \Drupal\Tests\contextual\Kernel\ContextualUnitTest::testContextualIdToLinks()
Tests _contextual_id_to_links().
File
- core/
modules/ contextual/ tests/ src/ Kernel/ ContextualUnitTest.php, line 123
Class
- ContextualUnitTest
- Tests all edge cases of converting from #contextual_links to ids and vice versa.
Namespace
Drupal\Tests\contextual\KernelCode
public function testContextualIdToLinks() {
$tests = $this
->_contextual_links_id_testcases();
foreach ($tests as $test) {
$this
->assertIdentical(_contextual_id_to_links($test['id']), $test['links']);
}
}