AddOrderTagAction example

class AddOrderTagActionTest extends TestCase
{
    private MockObject&EntityRepository $repository;

    private AddOrderTagAction $action;

    private MockObject&StorableFlow $flow;

    protected function setUp(): void
    {
        $this->repository = $this->createMock(EntityRepository::class);
        $this->action = new AddOrderTagAction($this->repository);

        $this->flow = $this->createMock(StorableFlow::class);
    }

    public function testRequirements(): void
    {
        static::assertSame(
            [OrderAware::class],
            $this->action->requirements()
        );
    }

    
Home | Imprint | This part of the site doesn't use cookies.