private MockObject&EntityRepository
$repository;
private AddOrderAffiliateAndCampaignCodeAction
$action;
private MockObject&StorableFlow
$flow;
protected function setUp(): void
{ $this->connection =
$this->
createMock(Connection::
class);
$this->repository =
$this->
createMock(EntityRepository::
class);
$this->action =
new AddOrderAffiliateAndCampaignCodeAction($this->connection,
$this->repository
);
$this->flow =
$this->
createMock(StorableFlow::
class);
} public function testRequirements(): void
{ static::
assertSame( [OrderAware::
class],
$this->action->
requirements() );
}