setupFile = dirname( __FILE__ ) . '/../../PortableInfobox.setup.php';
parent::setUp();
}
/**
* @covers \Wikia\PortableInfobox\Parser\Nodes\NodeInfobox::getParams
* @dataProvider paramsProvider
*
* @param $markup
* @param $expected
*/
public function testParams( $markup, $expected ) {
$node = \Wikia\PortableInfobox\Parser\Nodes\NodeFactory::newFromXML( $markup, [ ] );
$this->assertEquals( $expected, $node->getParams() );
}
public function paramsProvider() {
return [
[ '', [ ] ],
[ '', [ 'theme' => 'abs' ] ],
[ '', [ 'theme' => 'abs', 'more' => 'sdf' ] ],
];
}
}