default item quantity is 1.

This commit is contained in:
Paweł Jędrzejewski 2012-03-29 18:32:08 +02:00
parent b5222a514d
commit acb03ace53
2 changed files with 2 additions and 2 deletions

View file

@ -44,7 +44,7 @@ abstract class Item implements ItemInterface
*/
public function __construct()
{
$this->quantity = 0;
$this->quantity = 1;
}
/**

View file

@ -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()