function ContextualUnitTest::testContextualLinksToId in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/contextual/src/Tests/ContextualUnitTest.php \Drupal\contextual\Tests\ContextualUnitTest::testContextualLinksToId()
Tests _contextual_links_to_id().
File
- core/
modules/ contextual/ src/ Tests/ ContextualUnitTest.php, line 118 - Contains \Drupal\contextual\Tests\ContextualUnitTest.
Class
- ContextualUnitTest
- Tests all edge cases of converting from #contextual_links to ids and vice versa.
Namespace
Drupal\contextual\TestsCode
function testContextualLinksToId() {
$tests = $this
->_contextual_links_id_testcases();
foreach ($tests as $test) {
$this
->assertIdentical(_contextual_links_to_id($test['links']), $test['id']);
}
}