| @@ 88-96 (lines=9) @@ | ||
| 85 | /** |
|
| 86 | * testGetStockbaseEan |
|
| 87 | */ |
|
| 88 | public function testGetStockbaseEan() |
|
| 89 | { |
|
| 90 | $this->configureStockbaseEan(101, '12345'); |
|
| 91 | ||
| 92 | $model = $this->createModel(); |
|
| 93 | $result = $model->getStockbaseEan(101); |
|
| 94 | ||
| 95 | $this->assertEquals('12345', $result); |
|
| 96 | } |
|
| 97 | ||
| 98 | /** |
|
| 99 | * testIsStockbaseProduct |
|
| @@ 101-109 (lines=9) @@ | ||
| 98 | /** |
|
| 99 | * testIsStockbaseProduct |
|
| 100 | */ |
|
| 101 | public function testIsStockbaseProduct() |
|
| 102 | { |
|
| 103 | $this->configureStockbaseEan(101, '12345'); |
|
| 104 | ||
| 105 | $model = $this->createModel(); |
|
| 106 | $result = $model->isStockbaseProduct(101); |
|
| 107 | ||
| 108 | $this->assertEquals(true, $result); |
|
| 109 | } |
|
| 110 | ||
| 111 | /** |
|
| 112 | * testUpdateStockAmount |
|