Plum\Plum\WorkflowTest::addConverterWithPrependShouldPrependConverterToWorkflow PHP Метод

addConverterWithPrependShouldPrependConverterToWorkflow() публичный Метод

    public function addConverterWithPrependShouldPrependConverterToWorkflow()
    {
        $converter1 = $this->getMockConverter();
        $converter2 = $this->getMockConverter();
        $this->workflow->addConverter($converter1);
        $this->workflow->addConverter(['converter' => $converter2, 'position' => Workflow::PREPEND]);
        $this->assertSame($converter2, $this->workflow->getConverters()[0]->getConverter());
        $this->assertSame($converter1, $this->workflow->getConverters()[1]->getConverter());
    }
WorkflowTest