| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 40 | public function testSave() |
||
| 41 | { |
||
| 42 | $view = \TestHelperJqadm::getView(); |
||
| 43 | $params = ['product' => ['catalog.lists.refid' => [-1]]]; |
||
| 44 | $helper = new \Aimeos\MW\View\Helper\Param\Standard( $view, $params ); |
||
| 45 | $view->addHelper( 'param', $helper ); |
||
| 46 | |||
| 47 | $this->mock->expects( $this->once() )->method( 'save' )->will( $this->returnValue( 'test' ) ); |
||
| 48 | $this->object->setView( $view ); |
||
| 49 | |||
| 50 | $result = $this->object->save(); |
||
| 51 | |||
| 52 | $this->assertEquals( 'test', $result ); |
||
| 53 | } |
||
| 55 |