forked from Sylius/SyliusCartBundle
/
CartItem.php
37 lines (31 loc) · 846 Bytes
/
CartItem.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace spec\Sylius\Bundle\CartBundle\Entity;
use PHPSpec2\ObjectBehavior;
/**
* Cart item entity spec.
*
* @author Paweł Jędrzejewski <pjedrzejewski@diweb.pl>
*/
class CartItem extends ObjectBehavior
{
function it_is_initializable()
{
$this->shouldHaveType('Sylius\Bundle\CartBundle\Entity\CartItem');
}
function it_implements_Sylius_cart_item_interface()
{
$this->shouldImplement('Sylius\Bundle\CartBundle\Model\CartItemInterface');
}
function it_extends_Sylius_cart_item_model()
{
$this->shouldHaveType('Sylius\Bundle\CartBundle\Model\CartItem');
}
}