Example #1
0
 public function testGetDeleteUrl()
 {
     $url = 'some/magento/delete/url';
     $params = ['property' => 'value'];
     $this->urlBuilderMock->expects($this->once())->method('getUrl')->with('catalog/*/delete', ['_current' => true, '_query' => ['isAjax' => null], 'property' => 'value'])->willReturn($url);
     $this->assertEquals($url, $this->form->getDeleteUrl($params));
 }