File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"require" : {
3
- "magento/mtf" : " 1.0.0-rc44 " ,
3
+ "magento/mtf" : " 1.0.0-rc45 " ,
4
4
"php" : " ~5.6.0|7.0.2|~7.0.6" ,
5
5
"phpunit/phpunit" : " 4.1.0" ,
6
6
"phpunit/phpunit-selenium" : " >=1.2"
Original file line number Diff line number Diff line change 5
5
*/
6
6
require_once dirname (__FILE__ ) . '/ ' . 'bootstrap.php ' ;
7
7
8
- // Generate page
9
- $ objectManager ->create (\Magento \Mtf \Util \Generate \Page::class)->launch ();
10
-
11
8
// Generate fixtures
12
9
$ magentoObjectManagerFactory = \Magento \Framework \App \Bootstrap::createObjectManagerFactory (BP , $ _SERVER );
13
10
$ magentoObjectManager = $ magentoObjectManagerFactory ->create ($ _SERVER );
14
- $ objectManager ->create (\Magento \Mtf \Util \Generate \Fixture::class)->launch ();
15
11
16
12
// Generate repositories
17
13
$ magentoObjectManager ->get (\Magento \Framework \App \State::class)->setAreaCode ('frontend ' );
18
- $ objectManager ->create (\Magento \Mtf \Util \Generate \Repository::class)->launch ();
19
14
20
15
// Generate factories for old end-to-end tests
21
16
$ magentoObjectManager ->create (\Magento \Mtf \Util \Generate \Factory::class)->launch ();
22
17
18
+ $ generatorPool = $ objectManager ->get ('Magento\Mtf\Util\Generate\Pool ' );
19
+ foreach ($ generatorPool ->getGenerators () as $ generator ) {
20
+ if (!$ generator instanceof \Magento \Mtf \Util \Generate \LauncherInterface) {
21
+ throw new \InvalidArgumentException (
22
+ 'Generator ' . get_class ($ generator ) . ' should implement LauncherInterface '
23
+ );
24
+ }
25
+ $ generator ->launch ();
26
+ }
27
+
23
28
\Magento \Mtf \Util \Generate \GenerateResult::displayResults ();
You can’t perform that action at this time.
0 commit comments