function FusionApplyUIPluginPanelsTestCase::testPanelsDefault in Fusion Accelerator 7
Same name and namespace in other branches
- 7.2 fusion_apply/tests/fusion_apply_ui.test \FusionApplyUIPluginPanelsTestCase::testPanelsDefault()
Tests panels plugin.
File
- fusion_apply/
tests/ fusion_apply_ui.test, line 493 - Tests for the Fusion Apply UI module.
Class
- FusionApplyUIPluginPanelsTestCase
- Tests UI functionality for Block plugin.
Code
function testPanelsDefault() {
// Test panels pages.
// Go to panel page.
$this
->drupalGet('fusion_apply-ui-test-panel');
// Make sure our contextual link appears on the page.
$this
->assertLinkByHref('admin/appearance/fusion/edit/nojs/panels/pane__1__1/configure', 0, "Contexual link to edit pane's skin configuration on panel page (stored in code) was found.");
$this
->drupalGet('admin/structure/mini-panels');
// Test mini panels.
// Add the mini block to the sidebar.
$default_theme = variable_get('theme_default', 'bartik');
db_merge('block')
->key(array(
'theme' => $default_theme,
'module' => 'panels_mini',
'delta' => 'fusion_apply_ui_test_mini_panel',
))
->fields(array(
'status' => 1,
'region' => 'sidebar_first',
'pages' => '',
))
->execute();
// Go front page.
$this
->drupalGet('');
// Make sure our contextual link appears on the page.
// @todo Is there a better way to determine did and pid used for this panel?
$this
->assertLinkByHref('admin/appearance/fusion/edit/nojs/panels/pane__2__2/configure', 0, 'Contexual link to edit pane\'s skin configuration on mini panel (stored in code) was found.');
}