You are here

function FusionApplyUIAdminTestCase::testSkinListing in Fusion Accelerator 7

Same name and namespace in other branches
  1. 7.2 fusion_apply/tests/fusion_apply_ui.test \FusionApplyUIAdminTestCase::testSkinListing()

Tests skin configuration listing functionality.

File

fusion_apply/tests/fusion_apply_ui.test, line 290
Tests for the Fusion Apply UI module.

Class

FusionApplyUIAdminTestCase
Tests administrative pages functionality.

Code

function testSkinListing() {
  $skin = (object) array(
    'theme' => 'fusion_apply_test_subtheme',
    'module' => 'block',
    'element' => 'system__user-menu',
    'skin' => 'fusion_apply_test_subtheme',
    'options' => array(
      'option1',
      'option2',
    ),
    'status' => 1,
  );
  fusion_apply_skin_save($skin);

  // Verify that the skin configuration appears on the skin configurations overview page.
  $this
    ->drupalGet('admin/appearance/fusion');
  $this
    ->assertLinkByHref('admin/appearance/fusion/delete/' . $skin->sid . '?destination=admin/appearance/fusion', 0, 'Skin configuration was found on overview page.');

  // @todo Should we check the filtering and update options functionality?
}