public function testGetCacheKey() { $this->requestInterface->expects($this->any())->method('getParam')->with('data')->will($this->returnValue('eyJvcmRlcl9pZCI6MSwiaW5jcmVtZW50X2lkIjoiMTAwMDAwMDAxIiwiY3VzdG9tZXJfaWQiOjF9')); $this->orderFactory->expects($this->once())->method('create')->will($this->returnValue($this->order)); $this->assertEquals('rss_order_status_data_' . md5('11000000011'), $this->model->getCacheKey()); }
/** * @param string $requestData * @param string $result * @dataProvider getCacheKeyDataProvider */ public function testGetCacheKey($requestData, $result) { $this->requestInterface->expects($this->any())->method('getParam')->with('data')->will($this->returnValue($requestData)); $this->orderFactory->expects($this->once())->method('create')->will($this->returnValue($this->order)); $this->assertEquals('rss_order_status_data_' . $result, $this->model->getCacheKey()); }