'settings' =>
['key' => 'value'
],
'merge' => TRUE,
];
$this->
assertEquals($expected,
$command->
render());
} /**
* @covers \Drupal\Core\Ajax\OpenDialogCommand
*/
public function testOpenDialogCommand() { $command =
new OpenDialogCommand('#some-dialog', 'Title', '<p>Text!</p>',
[ 'url' => FALSE,
'width' => 500,
]);
$expected =
[ 'command' => 'openDialog',
'selector' => '#some-dialog',
'settings' => NULL,
'data' => '<p>Text!</p>',
'dialogOptions' =>
[ 'url' => FALSE,