File tree Expand file tree Collapse file tree 6 files changed +4
-7
lines changed
lib/Magento/Mtf/Util/Generate/Repository
tests/app/Magento/Checkout/Test Expand file tree Collapse file tree 6 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public function getCollection(array $fixture)
62
62
{
63
63
$ type = $ fixture ['type ' ];
64
64
$ method = $ type . 'Collection ' ;
65
- if (!method_exists ($ this , $ method )) {
65
+ if (!method_exists ($ this , $ method ) || empty ( $ fixture [ ' collection ' ]) ) {
66
66
return [];
67
67
}
68
68
Original file line number Diff line number Diff line change 11
11
<module >Magento_Checkout</module >
12
12
<type >flat</type >
13
13
<entity_type >quote</entity_type >
14
- <collection >Magento\Checkout\Model\Resource\Cart</collection >
15
14
<repository_class >Magento\Checkout\Test\Repository\Cart</repository_class >
16
15
<handler_interface >Magento\Checkout\Test\Handler\Cart\CartInterface</handler_interface >
17
16
<fields >
Original file line number Diff line number Diff line change 9
9
<cart module =" Magento_Checkout" >
10
10
<type >flat</type >
11
11
<entity_type >quote</entity_type >
12
- <collection >Magento\Checkout\Model\Resource\Cart</collection >
13
12
</cart >
14
13
</fixture >
Original file line number Diff line number Diff line change 16
16
17
17
$ objectManager = \Magento \Mtf \ObjectManagerFactory::getObjectManager ();
18
18
\Magento \Mtf \ObjectManagerFactory::configure ($ objectManager );
19
+
20
+ $ magentoObjectManagerFactory = \Magento \Framework \App \Bootstrap::createObjectManagerFactory (BP , $ _SERVER );
21
+ $ magentoObjectManager = $ magentoObjectManagerFactory ->create ($ _SERVER );
Original file line number Diff line number Diff line change 5
5
*/
6
6
require_once dirname (__DIR__ ) . '/ ' . 'bootstrap.php ' ;
7
7
8
- $ magentoObjectManagerFactory = \Magento \Framework \App \Bootstrap::createObjectManagerFactory (BP , $ _SERVER );
9
- $ magentoObjectManager = $ magentoObjectManagerFactory ->create ($ _SERVER );
10
8
$ magentoObjectManager ->create ('Magento\Mtf\Util\Generate\Factory ' )->launch ();
11
9
\Magento \Mtf \Util \Generate \GenerateResult::displayResults ();
Original file line number Diff line number Diff line change 5
5
*/
6
6
require_once dirname (__DIR__ ) . '/ ' . 'bootstrap.php ' ;
7
7
8
- $ magentoObjectManagerFactory = \Magento \Framework \App \Bootstrap::createObjectManagerFactory (BP , $ _SERVER );
9
- $ magentoObjectManager = $ magentoObjectManagerFactory ->create ($ _SERVER );
10
8
$ fieldsProvider = $ magentoObjectManager ->create ('\Magento\Mtf\Util\Generate\Fixture\FieldsProvider ' );
11
9
$ objectManager ->create ('Magento\Mtf\Util\Generate\Fixture ' , ['fieldsProvider ' => $ fieldsProvider ])->launch ();
You can’t perform that action at this time.
0 commit comments