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 2020use Magento \Catalog \Setup \CategorySetupFactory ;
2121use Magento \Framework \Setup \ModuleDataSetupInterface ;
2222use Magento \Framework \Setup \Patch \DataPatchInterface ;
23+ use Magento \Framework \Setup \Patch \PatchInterface ;
2324
2425class UpdateDefaultSortyByBackendType implements DataPatchInterface
2526{
@@ -49,7 +50,7 @@ public function __construct(
4950 /**
5051 * @inheritdoc
5152 */
52- public function apply ()
53+ public function apply (): UpdateDefaultSortyByBackendType
5354 {
5455 $ mediaBackendModel = \Magento \Catalog \Model \Category \Attribute \Backend \DefaultSortby::class;
5556 /** @var CategorySetup $categorySetup */
@@ -60,6 +61,8 @@ public function apply()
6061 'backend_model ' ,
6162 $ mediaBackendModel
6263 );
64+
65+ return $ this ;
6366 }
6467
6568 /**
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ public function testComplexAttributeTypeResolver()
156156 'catalog_product '
157157 ];
158158 $ attributeTypes = [
159- 'String[] ' ,
159+ 'String ' ,
160160 'String[] ' ,
161161 'Int ' ,
162162 'CatalogInventoryDataStockItemInterface[] ' ,
Original file line number Diff line number Diff line change 314314 Magento \Catalog \Model \Category \Attribute \Backend \Image \Interceptor::class => null ,
315315 Magento \Catalog \Model \Attribute \Backend \Startdate \Interceptor::class => null ,
316316 Magento \Eav \Model \Entity \Attribute \Backend \Datetime \Interceptor::class => null ,
317+ Magento \Catalog \Model \Category \Attribute \Backend \DefaultSortby \Interceptor::class => null ,
317318 Magento \Catalog \Model \Category \Attribute \Backend \Sortby \Interceptor::class => null ,
318319 Magento \Catalog \Model \Category \Attribute \Backend \LayoutUpdate \Interceptor::class => null ,
319320 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
193193 'custom_design_to ' => 'string ' ,
194194 'available_sort_by ' => 'string[] ' ,
195195 'page_layout ' => 'string ' ,
196- 'default_sort_by ' => 'string[] ' ,
196+ 'default_sort_by ' => 'string ' ,
197197 'filter_price_range ' => 'double ' ,
198198 'custom_layout_update ' => 'string ' ,
199199 ]
You can’t perform that action at this time.
0 commit comments