public function testGetSubmitUrl() { /* by default same as add to cart */ $this->assertStringEndsWith('?options=cart', $this->_block->getSubmitUrl($this->_product)); $this->_block->setData('submit_route_data', ['route' => 'catalog/product/view']); $this->assertStringEndsWith('catalog/product/view/', $this->_block->getSubmitUrl($this->_product)); }