File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed
app/code/Magento/Catalog/Setup/Patch/Data
api-functional/testsuite/Magento/GraphQl/Catalog
framework/Magento/TestFramework/ApplicationStateComparator/_files
testsuite/Magento/Eav/Model Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 20
20
use Magento \Catalog \Setup \CategorySetupFactory ;
21
21
use Magento \Framework \Setup \ModuleDataSetupInterface ;
22
22
use Magento \Framework \Setup \Patch \DataPatchInterface ;
23
+ use Magento \Framework \Setup \Patch \PatchInterface ;
23
24
24
25
class UpdateDefaultSortyByBackendType implements DataPatchInterface
25
26
{
@@ -49,7 +50,7 @@ public function __construct(
49
50
/**
50
51
* @inheritdoc
51
52
*/
52
- public function apply ()
53
+ public function apply (): UpdateDefaultSortyByBackendType
53
54
{
54
55
$ mediaBackendModel = \Magento \Catalog \Model \Category \Attribute \Backend \DefaultSortby::class;
55
56
/** @var CategorySetup $categorySetup */
@@ -60,6 +61,8 @@ public function apply()
60
61
'backend_model ' ,
61
62
$ mediaBackendModel
62
63
);
64
+
65
+ return $ this ;
63
66
}
64
67
65
68
/**
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ public function testComplexAttributeTypeResolver()
156
156
'catalog_product '
157
157
];
158
158
$ attributeTypes = [
159
- 'String[] ' ,
159
+ 'String ' ,
160
160
'String[] ' ,
161
161
'Int ' ,
162
162
'CatalogInventoryDataStockItemInterface[] ' ,
Original file line number Diff line number Diff line change 314
314
Magento \Catalog \Model \Category \Attribute \Backend \Image \Interceptor::class => null ,
315
315
Magento \Catalog \Model \Attribute \Backend \Startdate \Interceptor::class => null ,
316
316
Magento \Eav \Model \Entity \Attribute \Backend \Datetime \Interceptor::class => null ,
317
+ Magento \Catalog \Model \Category \Attribute \Backend \DefaultSortby \Interceptor::class => null ,
317
318
Magento \Catalog \Model \Category \Attribute \Backend \Sortby \Interceptor::class => null ,
318
319
Magento \Catalog \Model \Category \Attribute \Backend \LayoutUpdate \Interceptor::class => null ,
319
320
Magento \Catalog \Model \Attribute \Backend \Customlayoutupdate \Interceptor::class => null ,
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ public function getExpectedAttributeTypesProvider(): array
193
193
'custom_design_to ' => 'string ' ,
194
194
'available_sort_by ' => 'string[] ' ,
195
195
'page_layout ' => 'string ' ,
196
- 'default_sort_by ' => 'string[] ' ,
196
+ 'default_sort_by ' => 'string ' ,
197
197
'filter_price_range ' => 'double ' ,
198
198
'custom_layout_update ' => 'string ' ,
199
199
]
You can’t perform that action at this time.
0 commit comments