11<?php
22/**
3- * Copyright © Magento, Inc. All rights reserved.
4- * See COPYING.txt for license details .
3+ * Copyright 2015 Adobe
4+ * All Rights Reserved .
55 */
66namespace Magento \TestFramework \Store ;
77
8+ use Magento \Framework \Interception \InterceptorInterface ;
89use Magento \TestFramework \App \Config ;
910use Magento \TestFramework \ObjectManager ;
1011
1112/**
1213 * Integration tests decoration of store manager
13- *
14- * @package Magento\TestFramework\Store
1514 */
1615class StoreManager implements \Magento \Store \Model \StoreManagerInterface
1716{
@@ -43,7 +42,7 @@ public function __construct(
4342 }
4443
4544 /**
46- * { @inheritdoc}
45+ * @inheritdoc
4746 */
4847 public function setCurrentStore ($ store )
4948 {
@@ -52,7 +51,7 @@ public function setCurrentStore($store)
5251 }
5352
5453 /**
55- * { @inheritdoc}
54+ * @inheritdoc
5655 */
5756 public function setIsSingleStoreModeAllowed ($ value )
5857 {
@@ -61,7 +60,7 @@ public function setIsSingleStoreModeAllowed($value)
6160 }
6261
6362 /**
64- * { @inheritdoc}
63+ * @inheritdoc
6564 */
6665 public function hasSingleStore ()
6766 {
@@ -71,7 +70,7 @@ public function hasSingleStore()
7170 }
7271
7372 /**
74- * { @inheritdoc}
73+ * @inheritdoc
7574 */
7675 public function isSingleStoreMode ()
7776 {
@@ -81,7 +80,7 @@ public function isSingleStoreMode()
8180 }
8281
8382 /**
84- * { @inheritdoc}
83+ * @inheritdoc
8584 */
8685 public function getStore ($ storeId = null )
8786 {
@@ -91,7 +90,7 @@ public function getStore($storeId = null)
9190 }
9291
9392 /**
94- * { @inheritdoc}
93+ * @inheritdoc
9594 */
9695 public function getStores ($ withDefault = false , $ codeKey = false )
9796 {
@@ -101,7 +100,7 @@ public function getStores($withDefault = false, $codeKey = false)
101100 }
102101
103102 /**
104- * { @inheritdoc}
103+ * @inheritdoc
105104 */
106105 public function getWebsite ($ websiteId = null )
107106 {
@@ -111,7 +110,7 @@ public function getWebsite($websiteId = null)
111110 }
112111
113112 /**
114- * { @inheritdoc}
113+ * @inheritdoc
115114 */
116115 public function getWebsites ($ withDefault = false , $ codeKey = false )
117116 {
@@ -121,13 +120,16 @@ public function getWebsites($withDefault = false, $codeKey = false)
121120 }
122121
123122 /**
124- * { @inheritdoc}
123+ * @inheritdoc
125124 */
126125 public function reinitStores ()
127126 {
128127 //In order to restore configFixture values
129128 $ testAppConfig = ObjectManager::getInstance ()->get (Config::class);
130129 $ reflection = new \ReflectionClass ($ testAppConfig );
130+ if ($ reflection ->implementsInterface (InterceptorInterface::class)) {
131+ $ reflection = $ reflection ->getParentClass ();
132+ }
131133 $ dataProperty = $ reflection ->getProperty ('data ' );
132134 $ dataProperty ->setAccessible (true );
133135 $ savedConfig = $ dataProperty ->getValue ($ testAppConfig );
@@ -139,7 +141,7 @@ public function reinitStores()
139141 }
140142
141143 /**
142- * { @inheritdoc}
144+ * @inheritdoc
143145 */
144146 public function getDefaultStoreView ()
145147 {
@@ -149,7 +151,7 @@ public function getDefaultStoreView()
149151 }
150152
151153 /**
152- * { @inheritdoc}
154+ * @inheritdoc
153155 */
154156 public function getGroup ($ groupId = null )
155157 {
@@ -159,7 +161,7 @@ public function getGroup($groupId = null)
159161 }
160162
161163 /**
162- * { @inheritdoc}
164+ * @inheritdoc
163165 */
164166 public function getGroups ($ withDefault = false )
165167 {
0 commit comments