'optionName' => 'title',
'optionValue' => 'Example',
];
$this->
assertEquals($expected,
$command->
render());
} /**
* @covers \Drupal\Core\Ajax\RedirectCommand
*/
public function testRedirectCommand() { $command =
new RedirectCommand('http://example.com'
);
$expected =
[ 'command' => 'redirect',
'url' => 'http://example.com',
];
$this->
assertEquals($expected,
$command->
render());
} /**
* @covers \Drupal\Core\Ajax\UpdateBuildIdCommand
*/