1 bootstrap.test BootstrapMiscTestCase::testMisc()

Test miscellaneous functions in bootstrap.inc.

File

core/modules/simpletest/tests/bootstrap.test, line 594

Class

BootstrapMiscTestCase
Test miscellaneous functions in bootstrap.inc.

Code

function testMisc() {
  // Test backdrop_array_merge_deep().
  $link_options_1 = array('fragment' => 'x', 'attributes' => array('title' => 'X', 'class' => array('a', 'b')), 'language' => 'en');
  $link_options_2 = array('fragment' => 'y', 'attributes' => array('title' => 'Y', 'class' => array('c', 'd')), 'html' => TRUE);
  $expected = array('fragment' => 'y', 'attributes' => array('title' => 'Y', 'class' => array('a', 'b', 'c', 'd')), 'language' => 'en', 'html' => TRUE);
  $this->assertIdentical(backdrop_array_merge_deep($link_options_1, $link_options_2), $expected, 'backdrop_array_merge_deep() returned a properly merged array.');
}