for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?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\Component\Resource\Exception;
use PhpSpec\ObjectBehavior;
use Sylius\Component\Resource\Exception\RaceConditionException;
use Sylius\Component\Resource\Exception\UpdateHandlingException;
/**
* @author Grzegorz Sadowski <[email protected]>
final class RaceConditionExceptionSpec extends ObjectBehavior
{
function it_is_initializable()
$this->shouldHaveType(RaceConditionException::class);
}
function it_extends_an_update_handling_exception()
$this->shouldHaveType(UpdateHandlingException::class);
function it_has_a_message()
$this->getMessage()->shouldReturn('Operated entity was previously modified.');
function it_has_a_flash()
$this->getFlash()->shouldReturn('race_condition_error');
function it_has_an_api_response_code()
$this->getApiResponseCode()->shouldReturn(409);