function FusionApplyUIPluginTestCase::testNode in Fusion Accelerator 7.2
Same name and namespace in other branches
- 7 fusion_apply/tests/fusion_apply_ui.test \FusionApplyUIPluginTestCase::testNode()
Tests node plugin.
File
- fusion_apply/tests/ fusion_apply_ui.test, line 443 
- Tests for the Fusion Apply UI module.
Class
- FusionApplyUIPluginTestCase
- Tests UI functionality for Block plugin.
Code
function testNode() {
  // Create a node.
  $node = $this
    ->drupalCreateNode(array(
    'type' => 'article',
  ));
  // Go to node.
  $uri = entity_uri('node', $node);
  $this
    ->drupalGet($uri['path']);
  // Make sure our contextual link appears on the page.
  $this
    ->assertLinkByHref('admin/appearance/fusion/edit/nojs/node/article/configure', 0, 'Contexual link to edit node\'s skin configuration was found.');
}