/** * @param $param * @param $expectedJson * @param $expected * @dataProvider selectedDataProvider */ public function testSelected($param, $expectedJson, $expected) { $this->_requestMock->expects($this->any())->method('getParam')->with($this->_block->getFormFieldNameInternal())->will($this->returnValue($param)); $this->assertEquals($expectedJson, $this->_block->getSelectedJson()); $this->assertEquals($expected, $this->_block->getSelected()); }