You are here

public function SkinTest::testMerge in Forena Reports 8

Test Mechanism for replacing text

File

tests/src/Unit/SkinTest.php, line 50

Class

SkinTest
@group Forena @require module forena @coversDefaultClass \Drupal\forena\Skin

Namespace

Drupal\Tests\forena\Unit

Code

public function testMerge() {
  $skin = Skin::instance('default');
  $definition = [
    'libraries' => [
      'core/drupal.dialog',
    ],
  ];
  $skin
    ->merge($definition);
  $new_definition = $skin->info;
  $this
    ->assertContains('core/drupal.dialog', $new_definition['libraries']);
  $this
    ->assertContains('core/drupal.ajax', $new_definition['libraries']);
}