<?php

namespace Oro\Bundle\ApiBundle\Tests\Unit\Processor\Delete;

use Oro\Bundle\ApiBundle\Processor\Delete\ValidateDeletionResult;

class ValidateDeletionResultTest extends DeleteProcessorTestCase
{
    /** @var ValidateDeletionResult */
    protected $processor;

    public function setUp()
    {
        parent::setUp();

        $this->processor = new ValidateDeletionResult();
    }

    /**
     * @expectedException \RuntimeException
     * @expectedExceptionMessage The record was not deleted.
     */
    public function testProcessOnNotDeletedEntity()
    {
        $this->context->setResult(new \stdClass());
        $this->processor->process($this->context);
    }

    public function testProcess()
    {
        $this->processor->process($this->context);
    }
}
<?php

namespace Oro\Bundle\ApiBundle\Tests\Unit\Processor\Delete;

use Oro\Bundle\ApiBundle\Processor\Delete\ValidateDeletionResult;

class ValidateDeletionResultTest extends DeleteProcessorTestCase
{
    /** @var ValidateDeletionResult */
    protected $processor;

    public function setUp()
    {
        parent::setUp();

        $this->processor = new ValidateDeletionResult();
    }

    /**
     * @expectedException \RuntimeException
     * @expectedExceptionMessage The record was not deleted.
     */
    public function testProcessOnNotDeletedEntity()
    {
        $this->context->setResult(new \stdClass());
        $this->processor->process($this->context);
    }

    public function testProcess()
    {
        $this->processor->process($this->context);
    }
}

Update DELETE action configuration - Update tests
BAP-9875: Update DELETE action configuration
  - Update tests
