| Total Complexity | 3 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | class IndexTest extends \PHPUnit\Framework\TestCase |
||
| 13 | { |
||
| 14 | private $context; |
||
| 15 | private $object; |
||
| 16 | private $mock; |
||
| 17 | |||
| 18 | |||
| 19 | protected function setUp() : void |
||
| 20 | { |
||
| 21 | $this->context = \TestHelperJqadm::getContext(); |
||
| 22 | |||
| 23 | $this->mock = $this->getMockBuilder( 'Aimeos\Admin\JQAdm\Catalog\Product\Standard' ) |
||
| 24 | ->disableOriginalConstructor() |
||
| 25 | ->setMethods( ['save'] ) |
||
| 26 | ->getMock(); |
||
| 27 | |||
| 28 | $this->object = new \Aimeos\Admin\JQAdm\Common\Decorator\Index( $this->mock, $this->context ); |
||
| 29 | $this->object->setAimeos( \TestHelperJqadm::getAimeos() ); |
||
| 30 | $this->object->setView( \TestHelperJqadm::getView() ); |
||
| 31 | } |
||
| 32 | |||
| 33 | |||
| 34 | protected function tearDown() : void |
||
| 35 | { |
||
| 36 | unset( $this->object, $this->mock, $this->context ); |
||
| 37 | } |
||
| 38 | |||
| 39 | |||
| 40 | public function testSave() |
||
| 53 | } |
||
| 54 | } |
||
| 55 |