Plum\Plum\WorkflowTest::addFilterWithPrependShouldPrependFilterToWorkflow PHP Method

addFilterWithPrependShouldPrependFilterToWorkflow() public method

    public function addFilterWithPrependShouldPrependFilterToWorkflow()
    {
        $filter1 = $this->getMockFilter();
        $filter2 = $this->getMockFilter();
        $this->workflow->addFilter($filter1);
        $this->workflow->addFilter(['filter' => $filter2, 'position' => Workflow::PREPEND]);
        $this->assertSame($filter2, $this->workflow->getFilters()[0]->getFilter());
        $this->assertSame($filter1, $this->workflow->getFilters()[1]->getFilter());
    }
WorkflowTest