$resultStatement->
expects(static::
once())->
method('fetchAllAssociative'
)->
willReturn([]);
$this->connection->
method('executeQuery'
) ->
with(static::
anything(),
static::
equalTo(['ids' =>
[Uuid::
fromHexToBytes($idA),
$idB,
$idC,
$idD], 'flowTypes' =>
['orderTags'
]])) ->
willReturn($resultStatement);
$statement =
$this->
createMock(Statement::
class);
$statement->
method('getWrappedStatement'
)->
willReturn($this->
createMock(\Doctrine\DBAL\Driver\Statement::
class));
$this->connection->
method('prepare'
)->
willReturn($statement);
$this->conditionRegistry->
method('getFlowRuleNames'
)->
willReturn(['orderTags'
]);
$this->areaUpdater->
onEntityWritten($event);
}}/**
* @package business-ops
*
* @internal
*/
class RuleAreaDefinitionTest extends RuleDefinition
{ public function getEntityName(): string
{