Exemplo n.º 1
0
 /**
  * @param array $input
  * @param array $expected
  * @dataProvider setParametersDataProvider
  */
 public function testSetParameters(array $input, array $expected)
 {
     $pager = $this->getMockBuilder('Oro\\Bundle\\DataGridBundle\\Extension\\Pager\\Orm\\Pager')->disableOriginalConstructor()->getMock();
     $extension = new OrmPagerExtension($pager);
     $extension->setParameters(new ParameterBag($input));
     $this->assertEquals($expected, $extension->getParameters()->all());
 }
Exemplo n.º 2
0
 /**
  * @param array $input
  * @param array $expected
  * @dataProvider setParametersDataProvider
  */
 public function testSetParameters(array $input, array $expected)
 {
     $this->extension->setParameters(new ParameterBag($input));
     $this->assertEquals($expected, $this->extension->getParameters()->all());
 }