for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is a 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\Component\Order\Model;
use PhpSpec\ObjectBehavior;
use Sylius\Component\Order\Model\OrderSequence;
use Sylius\Component\Order\Model\OrderSequenceInterface;
/**
* @author Grzegorz Sadowski <[email protected]>
final class OrderSequenceSpec extends ObjectBehavior
{
function it_is_initializable()
$this->shouldHaveType(OrderSequence::class);
}
function it_implements_order_sequence_interface()
$this->shouldImplement(OrderSequenceInterface::class);
function it_has_zero_index_after_initialized()
$this->getIndex()->shouldReturn(0);
function it_increments_index()
$this->incrementIndex();
$this->getIndex()->shouldReturn(1);