/** * @dataProvider stringParamProvider * @param $param */ public function testGetOrder($param) { $this->cookie->expects($this->once())->method('get')->with(Toolbar::ORDER_COOKIE_NAME)->will($this->returnValue($param)); $this->assertEquals($param, $this->toolbarModel->getOrder()); }