mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
default item quantity is 1.
This commit is contained in:
parent
b5222a514d
commit
acb03ace53
2 changed files with 2 additions and 2 deletions
|
|
@ -44,7 +44,7 @@ abstract class Item implements ItemInterface
|
|||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->quantity = 0;
|
||||
$this->quantity = 1;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ class ItemTest extends \PHPUnit_Framework_TestCase
|
|||
{
|
||||
$item = $this->getItem();
|
||||
|
||||
$this->assertEquals(0, $item->getQuantity());
|
||||
$this->assertEquals(1, $item->getQuantity());
|
||||
}
|
||||
|
||||
public function testGetSetId()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue