public function testCanRenderForm()
{
$expected = elgg_view('forms/foo/bar.html');
$actual = elgg_view_form('foo/bar', ['class' => 'foo-bar'], ['baz2' => 'bar2']);
$this->assertNotEmpty($expected);
$this->assertNotEmpty($actual);
$normalize = function ($html) {
return preg_replace('~>\\s+~', ">", $html);
};
$this->assertEquals($normalize($expected), $normalize($actual));
}