File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
dev/tests/integration/testsuite/Magento/Wishlist/_files Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ public function __construct(
115
115
*/
116
116
public function isAllowed ()
117
117
{
118
- return ( bool ) $ this ->scopeConfig ->isSetFlag ('rss/wishlist/active ' , ScopeInterface::SCOPE_STORE )
118
+ return $ this ->scopeConfig ->isSetFlag ('rss/wishlist/active ' , ScopeInterface::SCOPE_STORE )
119
119
&& $ this ->getWishlist ()->getCustomerId () == $ this ->wishlistHelper ->getCustomer ()->getId ();
120
120
}
121
121
Original file line number Diff line number Diff line change 8
8
use Magento \Customer \Api \CustomerRepositoryInterface ;
9
9
use Magento \Framework \Exception \NoSuchEntityException ;
10
10
11
+ /** @var \Magento\Framework\ObjectManagerInterface $objectManager */
12
+ $ objectManager = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ();
13
+
11
14
/** @var \Magento\Framework\Registry $registry */
12
- $ registry = \ Magento \ TestFramework \ Helper \Bootstrap:: getObjectManager () ->get (\Magento \Framework \Registry::class);
15
+ $ registry = $ objectManager ->get (\Magento \Framework \Registry::class);
13
16
$ registry ->unregister ('isSecureArea ' );
14
17
$ registry ->register ('isSecureArea ' , true );
15
18
16
- /** @var \Magento\Framework\ObjectManagerInterface $objectManager */
17
- $ objectManager = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ();
18
-
19
19
/** @var \Magento\Wishlist\Model\Wishlist $wishlist */
20
20
$ wishlist = $ objectManager ->create (\Magento \Wishlist \Model \Wishlist::class);
21
21
29
29
$ wishlist ->loadByCustomerId ($ secondCustomer ->getId ());
30
30
$ wishlist ->delete ();
31
31
} catch (NoSuchEntityException $ e ) {
32
- /**
33
- * Tests which are wrapped with MySQL transaction clear all data by transaction rollback.
34
- */
32
+ /** Tests which are wrapped with MySQL transaction clear all data by transaction rollback. */
35
33
}
36
34
37
35
$ registry ->unregister ('isSecureArea ' );
You can’t perform that action at this time.
0 commit comments