File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
dev/tests/integration/testsuite/Magento/Catalog/Model/Product/Gallery Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,10 @@ class UpdateHandlerTest extends \PHPUnit\Framework\TestCase
73
73
* @var string
74
74
*/
75
75
private $ fileName ;
76
+
77
+ /**
78
+ * @var int
79
+ */
76
80
private $ mediaAttributeId ;
77
81
78
82
/**
@@ -87,7 +91,7 @@ protected function setUp()
87
91
$ this ->storeRepository = $ this ->objectManager ->create (StoreRepositoryInterface::class);
88
92
$ this ->galleryResource = $ this ->objectManager ->create (Gallery::class);
89
93
$ this ->productResource = $ this ->objectManager ->create (ProductResource::class);
90
- $ this ->mediaAttributeId = $ this ->productResource ->getAttribute ('media_gallery ' )->getAttributeId ();
94
+ $ this ->mediaAttributeId = ( int ) $ this ->productResource ->getAttribute ('media_gallery ' )->getAttributeId ();
91
95
$ this ->config = $ this ->objectManager ->get (Config::class);
92
96
$ this ->mediaDirectory = $ this ->objectManager ->get (Filesystem::class)
93
97
->getDirectoryWrite (DirectoryList::MEDIA );
You can’t perform that action at this time.
0 commit comments