@@ -50,23 +50,9 @@ protected function setUp(): void
50
50
$ this ->graphQlResolverCache = $ this ->objectManager ->get (GraphQlResolverCache::class);
51
51
$ this ->productRepository = $ this ->objectManager ->get (ProductRepositoryInterface::class);
52
52
53
- // first register secure area so we have permission to delete customer in tests
54
- $ this ->registry = $ this ->objectManager ->get (Registry::class);
55
- $ this ->registry ->unregister ('isSecureArea ' );
56
- $ this ->registry ->register ('isSecureArea ' , true );
57
-
58
53
parent ::setUp ();
59
54
}
60
55
61
- protected function tearDown (): void
62
- {
63
- // reset secure area to false (was set to true in setUp so we could delete customer in tests)
64
- $ this ->registry ->unregister ('isSecureArea ' );
65
- $ this ->registry ->register ('isSecureArea ' , false );
66
-
67
- parent ::tearDown ();
68
- }
69
-
70
56
/**
71
57
* @magentoDbIsolation disabled
72
58
* @magentoApiDataFixture Magento/Catalog/_files/product_simple_with_media_gallery_entries.php
@@ -183,11 +169,11 @@ public function testMediaGalleryResolverCacheKeyAndTags()
183
169
184
170
$ simpleProduct = $ this ->productRepository ->get ($ simpleProductSku );
185
171
$ simpleProductCacheKey = $ this ->getCacheKeyForMediaGalleryResolver ($ simpleProduct );
186
- $ simplePrductCacheTags = $ this ->getCacheTagsUsedInMediaGalleryResolverCache ($ simpleProductCacheKey );
172
+ $ simpleProductCacheTags = $ this ->getCacheTagsUsedInMediaGalleryResolverCache ($ simpleProductCacheKey );
187
173
// Verify cache tags are generated correctly for the simple product
188
174
$ this ->assertEquals (
189
175
$ this ->getExpectedCacheTags ($ simpleProduct ),
190
- $ simplePrductCacheTags
176
+ $ simpleProductCacheTags
191
177
);
192
178
193
179
// Test simple product with media
@@ -212,7 +198,7 @@ public function testMediaGalleryResolverCacheKeyAndTags()
212
198
$ this ->assertNotEquals ($ simpleProductCacheKey , $ simpleProductWithMediaCacheKey );
213
199
214
200
// Verify different product query has different cache tags
215
- $ this ->assertNotEquals ($ simplePrductCacheTags , $ simpleProductWithMediaCacheTags );
201
+ $ this ->assertNotEquals ($ simpleProductCacheTags , $ simpleProductWithMediaCacheTags );
216
202
}
217
203
218
204
/**
0 commit comments