Skip to content
Snippets Groups Projects
Commit c9cafcba authored by Eduarda Lentz Rodrigues da Silva's avatar Eduarda Lentz Rodrigues da Silva
Browse files

ZERO-162 Fix static test

parent 4fb9637f
No related branches found
No related tags found
1 merge request!46ZERO-162-changes
Pipeline #97351 failed
......@@ -167,26 +167,34 @@ class InconsistenciesInCmsBlock
]
);
$message = $this->mimeMessageFactory->create([
$message = $this->mimeMessageFactory->create(
[
'parts' => [$mimePart]
]);
]
);
$from = $this->addressFactory->create([
$from = $this->addressFactory->create(
[
'email' => $this->scopeConfig->getValue(self::SENDER_EMAIL),
'name' => ''
]);
]
);
$to = $this->addressFactory->create([
$to = $this->addressFactory->create(
[
'email' => $this->scopeConfig->getValue(self::RECIPIENT_EMAIL),
'name' => ''
]);
]
);
$data = $this->messageFactory->create([
$data = $this->messageFactory->create(
[
'subject' => self::EMAIL_SUBJECT,
'from' => [$from],
'to' => [$to],
'body' => $message
]);
]
);
/** @var TransportInterface $transport */
$transport = $this->mailTransportFactory->create(['message' => $data]);
......
......@@ -107,7 +107,7 @@ class BlockListCommand extends Command
$tableData->render($output);
}
return Cli::RETURN_SUCCESS;
return Command::SUCCESS;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment