Skip to content

Magento2 integration tests magentoConfigFixture getting empty value for obscure field

i am writing integration tests for my custom module that has a configuration field type obscure. in test file app/code/Foo/Bar/Test/Integration/Model/ConfigTest.php i have code: <?php namespace FooBarTestIntegrationModel; use FooBarModelConfig; use MagentoFrameworkObjectManagerInterface; use MagentoTestFrameworkHelperBootstrap; use PHPUnitFrameworkTestCase; class ConfigTest extends TestCase { private… Read More »Magento2 integration tests magentoConfigFixture getting empty value for obscure field

i’m installed 2 modules and i get this error if i want command setup:upgrade and compile

i’m installed module and i get this error if i want command setup:upgrade and compile first problem with setup:upgrade i get this error Column definition “customer_group_id” and reference column definition “customer_group_id” are different in tables “mgz_checkoutsuccesspage_rule_customer_group” and “customer_group” and number… Read More »i’m installed 2 modules and i get this error if i want command setup:upgrade and compile

Logo not showing up in invoice PDF from frontend

I’m trying to show the logo in /sales/order/print page from the frontend orders account dashboard like this: sales_order_print.xml <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”> <update handle=”sales_order_print_renderers” /> <update handle=”sales_order_item_price”/> <update handle=”print” /> <body> <referenceContainer name=”content”> <block class=”MagentoFrameworkViewElementTemplate” name=”invoice.logo” template=”Magento_Theme::invoice-logo.phtml” before=”-” /> </referenceContainer> <move… Read More »Logo not showing up in invoice PDF from frontend