'selector' => '#drupal-modal',
'persist' => FALSE,
];
$this->
assertEquals($expected,
$command->
render());
} /**
* @covers \Drupal\Core\Ajax\CloseDialogCommand
*/
public function testCloseDialogCommand() { $command =
new CloseDialogCommand('#some-dialog', TRUE
);
$expected =
[ 'command' => 'closeDialog',
'selector' => '#some-dialog',
'persist' => TRUE,
];
$this->
assertEquals($expected,
$command->
render());
} /**
* @covers \Drupal\Core\Ajax\SetDialogOptionCommand
*/