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