/** * @param string $subjectPath * @param string $expectedConfigPath * @dataProvider aroundGetConfigPathDataProvider */ public function testAroundGetConfigPath($subjectPath, $expectedConfigPath) { $callback = function () { return null; }; $this->request->expects($this->once())->method('getParam')->with('section')->will($this->returnValue('payment')); $this->subject->expects($this->once())->method('getPath')->will($this->returnValue($subjectPath)); $this->assertEquals($expectedConfigPath, $this->model->aroundGetConfigPath($this->subject, $callback)); }