File tree Expand file tree Collapse file tree 6 files changed +7
-32
lines changed
tests/app/Magento/Sales/Test/etc Expand file tree Collapse file tree 6 files changed +7
-32
lines changed Original file line number Diff line number Diff line change @@ -52,11 +52,12 @@ public function create(array $sharedInstances = [])
52
52
$ diConfig = new $ this ->configClassName ();
53
53
$ systemConfig = new SystemConfig ();
54
54
$ configuration = $ systemConfig ->getConfigParam ();
55
- $ diConfig ->extend ($ configuration );
55
+ $ diConfig ->extend (( array ) $ configuration );
56
56
$ factory = new Factory ($ diConfig );
57
57
$ argInterpreter = $ this ->createArgumentInterpreter (new BooleanUtils ());
58
58
$ argumentMapper = new \Magento \Framework \ObjectManager \Config \Mapper \Dom ($ argInterpreter );
59
59
60
+ $ sharedInstances ['Magento\Framework\Data\Argument\InterpreterInterface ' ] = $ argInterpreter ;
60
61
$ sharedInstances ['Magento\Framework\ObjectManager\Config\Mapper\Dom ' ] = $ argumentMapper ;
61
62
$ objectManager = new $ this ->locatorClassName ($ factory , $ diConfig , $ sharedInstances );
62
63
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public function checkConnection()
50
50
{
51
51
$ this ->connection = $ this ->getConnection ('core_write ' );
52
52
if (!$ this ->connection || $ this ->connection instanceof \Zend_Db_Adapter_Exception) {
53
- echo ('Connection to Magento 2 database is absent. ' . PHP_EOL );
53
+ echo ('Connection to Magento 2 database is absent. Fixture data has not been fetched. ' . PHP_EOL );
54
54
return false ;
55
55
}
56
56
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public function checkConnection()
45
45
{
46
46
$ connection = $ this ->getConnection ('read ' );
47
47
if (!$ connection || $ connection instanceof \Zend_Db_Adapter_Exception) {
48
- echo ('Connection to Magento 2 database is absent. ' . PHP_EOL );
48
+ echo ('Connection to Magento 2 database is absent. Repository data has not been fetched. ' . PHP_EOL );
49
49
return false ;
50
50
}
51
51
Original file line number Diff line number Diff line change 6
6
*/
7
7
-->
8
8
<fixture >
9
- <order module =" Magento_Sales" >
10
- <type >flat</type >
11
- <entity_type >sales_order</entity_type >
12
- <collection >Magento\Sales\Model\Resource\Order\Collection</collection >
13
- <fields >
14
- <id >
15
- <attribute_code >id</attribute_code >
16
- <backend_type >virtual</backend_type >
17
- </id >
18
- </fields >
19
- </order >
20
9
<orderInjectable module =" Magento_Sales" >
21
10
<type >flat</type >
22
11
<entity_type >sales_order</entity_type >
Original file line number Diff line number Diff line change 5
5
*/
6
6
require_once dirname (__FILE__ ) . '/ ' . 'bootstrap.php ' ;
7
7
8
- $ objectManager ->create ('Mtf\Util\Generate\TestCase ' )->launch ();
9
8
$ objectManager ->create ('Mtf\Util\Generate\Page ' )->launch ();
10
9
$ objectManager ->create ('Mtf\Util\Generate\Fixture ' )->launch ();
11
- $ objectManager ->create ('Mtf\Util\Generate\Constraint ' )->launch ();
12
- $ objectManager ->create ('Mtf\Util\Generate\Handler ' )->launch ();
13
-
14
10
$ objectManager ->get ('Magento\Framework\App\State ' )->setAreaCode ('frontend ' );
15
11
$ objectManager ->create ('Mtf\Util\Generate\Repository ' )->launch ();
12
+ $ objectManager ->create ('Mtf\Util\Generate\Factory ' )->launch ();
16
13
17
14
\Mtf \Util \Generate \GenerateResult::displayResults ();
Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
- $ mtfRoot = dirname (dirname (dirname (__FILE__ )));
8
- $ mtfRoot = str_replace ('\\' , '/ ' , $ mtfRoot );
9
- define ('MTF_BP ' , $ mtfRoot );
10
- define ('MTF_TESTS_PATH ' , MTF_BP . '/tests/app/ ' );
11
-
12
- require __DIR__ . '/../../../../../app/bootstrap.php ' ;
13
- require MTF_BP . '/vendor/autoload.php ' ;
14
-
15
- $ bootstrap = \Magento \Framework \App \Bootstrap::create (BP , $ _SERVER );
16
-
17
- $ om = $ bootstrap ->getObjectManager ();
18
- /** @var \Mtf\Util\Generate\Factory $generator */
19
- $ generator = $ om ->create ('Mtf\Util\Generate\Factory ' );
20
- $ generator ->launch ();
7
+ require_once dirname (__DIR__ ) . '/ ' . 'bootstrap.php ' ;
8
+ $ objectManager ->create ('Mtf\Util\Generate\Factory ' )->launch ();
21
9
\Mtf \Util \Generate \GenerateResult::displayResults ();
You can’t perform that action at this time.
0 commit comments