You are here

function responsive_preview_testswarm_tests in Responsive Theme Preview 7

Implements hook_testswarm_tests().

File

./responsive_preview.module, line 592
Provides a component that previews the a page in various device dimensions.

Code

function responsive_preview_testswarm_tests() {
  $path = drupal_get_path('module', 'responsive_preview');
  return array(
    'responsivePreview' => array(
      'module' => 'responsive_preview',
      'description' => 'Test the responsive preview module.',
      'js' => array(
        $path . '/tests/testswarm/responsive_preview.tests.js' => array(),
        array(
          'data' => array(
            'responsive_preview' => array(
              'devices' => config('responsive_preview.devices')
                ->get(),
            ),
          ),
          'type' => 'setting',
        ),
      ),
      'dependencies' => array(
        array(
          'system',
          'jquery',
        ),
        array(
          'system',
          'drupalSettings',
        ),
        array(
          'testswarm',
          'jquery.simulate',
        ),
      ),
      'path' => '',
      'permissions' => array(),
    ),
    'responsivePreviewAdmin' => array(
      'module' => 'responsive_preview',
      'description' => 'Test the responsive preview module admin.',
      'js' => array(
        $path . '/tests/testswarm/responsive_preview.admin.tests.js' => array(),
      ),
      'dependencies' => array(
        array(
          'system',
          'jquery',
        ),
      ),
      'path' => 'admin',
      'permissions' => array(),
    ),
  );
}