| Current Path : /home/rtorresani/www/vendor/magento/framework/Mview/Test/Unit/_files/ |
| Current File : //home/rtorresani/www/vendor/magento/framework/Mview/Test/Unit/_files/mview_config.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
return [
'inputXML' => '<?xml version="1.0" encoding="UTF-8"?><config>'
. '<view id="view_one" class="Ogogo\Class\One" group="some_view_group"><!--comment-->'
. '<subscriptions><table name="some_entity" entity_column="entity_id" />'
. '<table name="some_product_relation" entity_column="product_id" /><nottable/>'
. '<!--comment--></subscriptions></view></config>',
'expected' => [
'view_one' => [
'view_id' => 'view_one',
'action_class' => 'Ogogo\Class\One',
'group' => 'some_view_group',
'subscriptions' => [
'some_entity' => [
'name' => 'some_entity',
'column' => 'entity_id',
'subscription_model' => null,
'additional_columns' => [],
'processor' => \Magento\Framework\Mview\View\AdditionalColumnsProcessor\DefaultProcessor::class
],
'some_product_relation' => [
'name' => 'some_product_relation',
'column' => 'product_id',
'subscription_model' => null,
'additional_columns' => [],
'processor' => \Magento\Framework\Mview\View\AdditionalColumnsProcessor\DefaultProcessor::class
],
],
'walker' => \Magento\Framework\Mview\View\ChangeLogBatchWalker::class
],
]
];