Skip to content

Commit 44f284d

Browse files
author
Melnikov, Igor(imelnikov)
committed
Merge pull request #259 from magento-extensibility/MAGETWO-46445-correct-erroneous-negative-recommendation
[Extensibility] Bug fixes
2 parents 33b13b6 + b5dc13b commit 44f284d

File tree

25 files changed

+256
-52
lines changed

25 files changed

+256
-52
lines changed

app/code/Magento/Config/Model/Config/Structure/Element/Group/Proxy.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
*/
66
namespace Magento\Config\Model\Config\Structure\Element\Group;
77

8-
class Proxy extends \Magento\Config\Model\Config\Structure\Element\Group
8+
class Proxy extends \Magento\Config\Model\Config\Structure\Element\Group implements
9+
\Magento\Framework\ObjectManager\NoninterceptableInterface
910
{
1011
/**
1112
* Object manager

app/code/Magento/Config/Model/Config/Structure/Search/Proxy.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
*/
66
namespace Magento\Config\Model\Config\Structure\Search;
77

8-
class Proxy implements \Magento\Config\Model\Config\Structure\SearchInterface
8+
class Proxy implements
9+
\Magento\Config\Model\Config\Structure\SearchInterface,
10+
\Magento\Framework\ObjectManager\NoninterceptableInterface
911
{
1012
/**
1113
* Object manager

app/code/Magento/Deploy/Model/Filesystem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ protected function compile(
161161
DirectoryList::DI,
162162
]
163163
);
164-
$cmd = $this->functionCallPath . 'setup:di:compile-multi-tenant';
164+
$cmd = $this->functionCallPath . 'setup:di:compile';
165165

166166
/**
167167
* exec command is necessary for now to isolate the autoloaders in the compiler from the memory state

app/code/Magento/PageCache/Model/System/Config/Source/Application.php

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@
99
*/
1010
namespace Magento\PageCache\Model\System\Config\Source;
1111

12+
use Magento\Framework\Option\ArrayInterface;
13+
use Magento\PageCache\Model\Config;
14+
1215
/**
1316
* Class Application
14-
*
1517
*/
16-
class Application implements \Magento\Framework\Option\ArrayInterface
18+
class Application implements ArrayInterface
1719
{
1820
/**
1921
* Options getter
@@ -24,12 +26,12 @@ public function toOptionArray()
2426
{
2527
return [
2628
[
27-
'value' => \Magento\PageCache\Model\Config::BUILT_IN,
28-
'label' => __('Built-in Application (Not Recommended for Production Use)')
29+
'value' => Config::BUILT_IN,
30+
'label' => __('Built-in Cache')
2931
],
3032
[
31-
'value' => \Magento\PageCache\Model\Config::VARNISH,
32-
'label' => __('Varnish Caching')
33+
'value' => Config::VARNISH,
34+
'label' => __('Varnish Cache (Recommended)')
3335
]
3436
];
3537
}
@@ -42,9 +44,8 @@ public function toOptionArray()
4244
public function toArray()
4345
{
4446
return [
45-
\Magento\PageCache\Model\Config::BUILT_IN =>
46-
__('Built-in Application (Not Recommended for Production Use)'),
47-
\Magento\PageCache\Model\Config::VARNISH => __('Varnish Caching')
47+
Config::BUILT_IN => __('Built-in Cache'),
48+
Config::VARNISH => __('Varnish Cache (Recommended)')
4849
];
4950
}
5051
}

app/code/Magento/PageCache/i18n/en_US.csv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"Export VCL","Export VCL"
22
"Ttl value ""%1"" is not valid. Please use only numbers equal or greater than zero.","Ttl value ""%1"" is not valid. Please use only numbers equal or greater than zero."
3-
"Built-in Application (Not Recommended for Production Use)","Built-in Application (Not Recommended for Production Use)"
4-
"Varnish Caching","Varnish Caching"
3+
"Built-in Cache","Built-in Cache"
4+
"Varnish Cache (Recommended)","Varnish Cache (Recommended)"
55
"Full Page Cache","Full Page Cache"
66
"Caching Application","Caching Application"
77
"Varnish Configuration","Varnish Configuration"

dev/tests/functional/tests/app/Magento/Swagger/Test/Page/SwaggerUiPage.php

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function __construct(BrowserInterface $browser)
6060
*/
6161
public function open()
6262
{
63-
$this->browser->open($this->url);
63+
$this->openSwaggerUrl();
6464
$this->waitForPageToLoad();
6565
}
6666

@@ -209,4 +209,29 @@ function () use ($browser, $selector, $strategy) {
209209
}
210210
);
211211
}
212+
213+
/**
214+
* Wait to open swagger url
215+
*
216+
* This is to work around an issue with selenium web driver randomly returns browser url as "about:blank"
217+
* when open swagger page
218+
*
219+
* @return bool|null
220+
*/
221+
private function openSwaggerUrl()
222+
{
223+
$browser = $this->browser;
224+
$pattern = self::MCA;
225+
return $browser->waitUntil(
226+
function () use ($browser, $pattern) {
227+
try {
228+
$url = $_ENV['app_frontend_url'] . $pattern;
229+
$browser->open($url);
230+
return true;
231+
} catch (\PHPUnit_Extensions_Selenium2TestCase_WebDriverException $e) {
232+
return false;
233+
}
234+
}
235+
);
236+
}
212237
}

dev/tests/integration/testsuite/Magento/Framework/Code/_expected/SourceClassWithNamespaceProxy.php.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Magento\Framework\Code\GeneratorTest\SourceClassWithNamespace;
77
* Copyright © 2015 Magento. All rights reserved.
88
* See COPYING.txt for license details.
99
*/
10-
class Proxy extends \Magento\Framework\Code\GeneratorTest\SourceClassWithNamespace
10+
class Proxy extends \Magento\Framework\Code\GeneratorTest\SourceClassWithNamespace implements \Magento\Framework\ObjectManager\NoninterceptableInterface
1111
{
1212
/**
1313
* Object Manager instance

lib/internal/Magento/Framework/App/AreaList/Proxy.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
*/
88
namespace Magento\Framework\App\AreaList;
99

10-
class Proxy extends \Magento\Framework\App\AreaList
10+
class Proxy extends \Magento\Framework\App\AreaList implements
11+
\Magento\Framework\ObjectManager\NoninterceptableInterface
1112
{
1213
/**
1314
* Object Manager instance

lib/internal/Magento/Framework/App/Cache/Proxy.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@
33
* Copyright © 2015 Magento. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
namespace Magento\Framework\App\Cache;
7+
8+
use \Magento\Framework\App\CacheInterface;
9+
use \Magento\Framework\ObjectManager\NoninterceptableInterface;
610

711
/**
812
* System cache proxy model
913
*/
10-
namespace Magento\Framework\App\Cache;
11-
12-
use Magento\Framework\App\CacheInterface;
13-
14-
class Proxy implements CacheInterface
14+
class Proxy implements
15+
CacheInterface,
16+
NoninterceptableInterface
1517
{
1618
/**
1719
* @var \Magento\Framework\ObjectManagerInterface

lib/internal/Magento/Framework/App/Route/ConfigInterface/Proxy.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
/**
1111
* Proxy class for \Magento\Framework\App\ResourceConnection
1212
*/
13-
class Proxy implements \Magento\Framework\App\Route\ConfigInterface
13+
class Proxy implements
14+
\Magento\Framework\App\Route\ConfigInterface,
15+
\Magento\Framework\ObjectManager\NoninterceptableInterface
1416
{
1517
/**
1618
* Object Manager instance

0 commit comments

Comments
 (0)