Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport] Variable as a method parameter might be overridden by the loop #5

Closed
wants to merge 130 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
130 commits
Select commit Hold shift + click to select a range
dd0f4bb
MAGETWO-84849: Update Changelog based on delivered scope
omiroshnichenko Mar 2, 2018
46ab406
MAGETWO-88336: [Backport] JS merging fails when JS bundling is enable…
Mar 5, 2018
ac5ef5e
MAGETWO-88992: Broken image in Schedule update.
svitja Mar 13, 2018
05f655a
MAGETWO-89066: Category chooser shows blank block
ameysar Mar 13, 2018
9202b40
MAGETWO-89066: Category chooser shows blank block
ameysar Mar 14, 2018
9cdae25
MAGETWO-89535: Category navigation menu is not updated after moving s…
svitja Mar 23, 2018
2641f3e
MAGETWO-89535: Category navigation menu is not updated after moving s…
svitja Mar 23, 2018
6bfda98
MAGETWO-89646: Hidden value is presented in Download product page
OlgaVasyltsun Mar 27, 2018
30c0d51
MAGETWO-88715: Update Changelog based on delivered scope
omiroshnichenko Apr 12, 2018
508def8
MAGETWO-88697: Magento 2.1.13 Publication
magento-team Apr 2, 2018
d7954d6
MAGETWO-88602: Incorect Design Configuration
Apr 16, 2018
c3908b4
MAGETWO-90410: Prepare codebase for 2.1.14
zakdma Apr 12, 2018
21405e2
MAGETWO-90925: Wrong case in classname CLI in ProcessCronQueueObserver
Apr 26, 2018
ab5b283
Merge pull request #2460 from magento-thunder/MAGETWO-90925
Apr 27, 2018
fa59ff9
MAGETWO-91017: Incorrectly generates logo
StasKozar May 2, 2018
f6ed038
MAGETWO-90395: Prepare code base 2.1.14
omiroshnichenko May 3, 2018
0c48e99
Merge pull request #2485 from magento-tsg/2.1.14-develop-pr53
viktym May 3, 2018
a4054aa
Merge branch '2.1.14-develop' of github.com:magento/magento2ce into 2…
omiroshnichenko May 3, 2018
da0d390
Merge pull request #2489 from magento-plankton/2.1.14-develop-update
viktym May 4, 2018
4966a50
MAGETWO-90394: Magento 2.1.14 Publication
magento-team Jun 14, 2018
d09dbe4
Added translation possibility for moreButtonText
Karlasa Jun 16, 2018
ce38bc8
MAGETWO-61209: Fixed issue with mage/calendar when setting `numberOfM…
Jun 20, 2018
c601b84
Fixes overlapping issue on category page.
chirag-wagento Jun 21, 2018
86fddd8
ENGCOM-2084: [Backport] Solve overlapping Issue on category page. #1…
magento-engcom-team Jun 21, 2018
ebccd5c
ENGCOM-2108: MAGETWO-61209: Backport - Fixed issue #7379 with mage/ca…
magento-engcom-team Jun 22, 2018
d8cab67
Added integration test for checking admin login attempts cleanup
rogyar Jun 22, 2018
66de2da
[Backport] array_push(...) calls behaving as '$array[] = ...', $arra…
lfluvisotto Jun 23, 2018
d909643
ENGCOM-2084: [Backport] Solve overlapping Issue on category page. #1…
Jun 23, 2018
4650916
ENGCOM-2114: [Backport 2.1] Captcha: Added integration test for check…
magento-engcom-team Jun 23, 2018
1bb1b7a
[Backport] PHPDoc
lfluvisotto Jun 23, 2018
346eed2
Corrected invoice grid column subtotal & shipping handling value
ankurseepossible Apr 21, 2018
c20946e
:arrows_clockwise: [EngCom] Public Pull Requests - 2.1-develop
Jun 24, 2018
7122a88
ENGCOM-2113: [Backport] array_push(...) calls behaving as '$array[] …
magento-engcom-team Jun 24, 2018
30db7cd
ENGCOM-2113: [Backport] array_push(...) calls behaving as '$array[] …
Jun 25, 2018
4bcdb46
Fixed InterfaceGeneratorTest
VladimirZaets Jun 25, 2018
390da42
ENGCOM-2120: [Backport] PHPDoc #16366
magento-engcom-team Jun 25, 2018
59f298f
ENGCOM-2120: [Backport] PHPDoc #16366
Jun 25, 2018
fd585a8
ENGCOM-2114: [Backport 2.1] Captcha: Added integration test for check…
Jun 25, 2018
f2038a9
Fixes updating wishlist item if an item object is passed instead its id.
eduard13 Jun 25, 2018
87c8f5a
Fixed static test failures
Jun 26, 2018
5564a37
ENGCOM-2129: [Backport]Fixes updating wishlist item if an item object…
magento-engcom-team Jun 26, 2018
5f4b65c
ENGCOM-2136: [Backport] Invoice grid shows wrong shipping & handling …
magento-engcom-team Jun 26, 2018
12f7e9c
Fixed static test failures
Jun 26, 2018
a5d68a5
Fixed static test failures
Jun 26, 2018
a83ec42
Added integration test for checking customer login attempts captcha c…
rogyar Jun 26, 2018
74e60e3
ENGCOM-2142: [Backport 2.1] Captcha: Added integration tests for chec…
magento-engcom-team Jun 26, 2018
65cceab
:arrows_clockwise: [EngCom] Public Pull Requests - 2.1-develop
Jun 26, 2018
a3b948c
ENGCOM-2142: [Backport 2.1] Captcha: Added integration tests for chec…
Jun 28, 2018
af2c7a6
ENGCOM-2136: [Backport] Invoice grid shows wrong shipping & handling …
Jun 28, 2018
b9fc7e2
ENGCOM-2108: MAGETWO-61209: Backport - Fixed issue #7379 with mage/ca…
Jun 28, 2018
1de3379
:arrows_clockwise: [EngCom] Public Pull Requests - 2.1-develop
Jun 29, 2018
d2a3065
Fix $useCache for container child blocks
Mar 9, 2018
559db61
ENGCOM-2153: [Backport] Fix $useCache for container child blocks #16467
magento-engcom-team Jun 30, 2018
18f255b
Update Info.php
ronak2ram Jun 18, 2018
dc790af
ENGCOM-2156: [Backport] Declare module namespace before template path…
magento-engcom-team Jul 2, 2018
1ad36ea
ENGCOM-2153: [Backport] Fix $useCache for container child blocks #16467
VladimirZaets Jul 2, 2018
f1f3fcb
Merge remote-tracking branch 'engcom/2.1-develop' into ENGCOM-2129-ma…
VladimirZaets Jul 2, 2018
80c28a5
:arrows_clockwise: [EngCom] Public Pull Requests - 2.1-develop
VladimirZaets Jul 2, 2018
fb39e70
ENGCOM-2156: [Backport] Declare module namespace before template path…
VladimirZaets Jul 2, 2018
cbdee0d
MAGETWO-90411: Merge release branch into 2.1-develop
aakimov Jul 2, 2018
5adf28c
Merge remote-tracking branch 'mainline/2.1-develop' into 2.1.14-merged
aakimov Jul 2, 2018
2c15d27
:arrows_clockwise: [EngCom] Public Pull Requests - 2.1-develop
VladimirZaets Jul 2, 2018
aa79287
Merge pull request #2782 from magento-plankton/2.1.14-merged
Jul 2, 2018
f0a8ba8
Fix for #8222
0m3r Jun 18, 2018
f388069
Remove var declaration as it is already present on top of function
orlangur Jul 3, 2018
977d7e4
ENGCOM-2167: Fix for #8222 #16491
magento-engcom-team Jul 3, 2018
f523032
added new phrase
Karlasa Jul 3, 2018
9d25eea
ENGCOM-2036: [Backport] #16079 translation possibility for moreButton…
magento-engcom-team Jul 3, 2018
f0a5e63
ENGCOM-2167: Fix for #8222 #16491
Jul 4, 2018
9ca029c
ENGCOM-2129: [Backport]Fixes updating wishlist item if an item object…
Jul 4, 2018
f266e65
ENGCOM-2129: [Backport]Fixes updating wishlist item if an item object…
Jul 4, 2018
8edf53b
ENGCOM-2036: [Backport] #16079 translation possibility for moreButton…
Jul 4, 2018
633c9ef
:arrows_clockwise: [EngCom] Public Pull Requests - 2.1-develop
Jul 4, 2018
56684c1
Correct return type of methods and typo correction.
Jun 11, 2018
9735078
bool primitive type in return type
Jun 15, 2018
0040a1c
Remove unneeded class import
orlangur Jun 15, 2018
00c0a6f
ENGCOM-2190: Correct return type of methods and typo correction #16547
magento-engcom-team Jul 5, 2018
b239212
ENGCOM-2190: Correct return type of methods and typo correction #16547
Jul 5, 2018
e43594e
:arrows_clockwise: [EngCom] Public Pull Requests - 2.1-develop
VladimirZaets Jul 5, 2018
50364d1
Update AssignProducts.php
mageprince Jul 3, 2018
3156f06
Update DefaultCaptcha.php
mageprince Jul 3, 2018
320748c
Update Tree.php
mageprince Jul 3, 2018
2ea290a
Update Chooser.php
mageprince Jul 3, 2018
fff72b6
Update Edit.php
mageprince Jul 3, 2018
534e755
Update Main.php
mageprince Jul 3, 2018
bf502d4
Update Group.php
mageprince Jul 3, 2018
c5a77ff
Update Add.php
mageprince Jul 3, 2018
154cde1
Update Main.php
mageprince Jul 3, 2018
c65e4d7
Update Configure.php
mageprince Jul 3, 2018
c34bc82
Update Alerts.php
mageprince Jul 3, 2018
835372f
Update Inventory.php
mageprince Jul 3, 2018
e139ab4
Update Options.php
mageprince Jul 3, 2018
1f352cf
Update Websites.php
mageprince Jul 3, 2018
fec40bd
Update Option.php
mageprince Jul 3, 2018
09e2e5b
Update Date.php
mageprince Jul 3, 2018
1756134
Update File.php
mageprince Jul 3, 2018
8af67d8
Update Select.php
mageprince Jul 3, 2018
5b353f4
Update Text.php
mageprince Jul 3, 2018
a1ccb20
Update Tier.php
mageprince Jul 3, 2018
964e126
Update Content.php
mageprince Jul 3, 2018
331c07a
Update Container.php
mageprince Jul 3, 2018
7a475a7
Update Link.php
mageprince Jul 3, 2018
1bc1104
Update Toolbar.php
mageprince Jul 3, 2018
4bf400d
Update Additional.php
mageprince Jul 3, 2018
362b942
Update Conditions.php
mageprince Jul 3, 2018
1cbcd7c
Update Conditions.php
mageprince Jul 3, 2018
ea49cd6
Update Created.php
mageprince Jul 3, 2018
af5ca55
Update Config.php
mageprince Jul 3, 2018
562ad21
Update Currency.php
mageprince Jul 3, 2018
fbfdf47
Update Matrix.php
mageprince Jul 3, 2018
0f981cf
Update Services.php
mageprince Jul 3, 2018
abdba4d
Update Newsletter.php
mageprince Jul 3, 2018
63d0ff9
Update Newsletter.php
mageprince Jul 3, 2018
4a4d5e3
Update Vat.php
mageprince Jul 3, 2018
d9f848f
Update Downloadable.php
mageprince Jul 3, 2018
1f6d6a4
Update Links.php
mageprince Jul 3, 2018
6dafb79
Update Samples.php
mageprince Jul 3, 2018
cfdf23d
Update Js.php
mageprince Jul 3, 2018
d219d1c
Update Template.php
mageprince Jul 3, 2018
5a11c63
Update Edit.php
mageprince Jul 3, 2018
a66dbfd
Update Inline.php
mageprince Jul 3, 2018
613b07d
Update State.php
mageprince Jul 3, 2018
6a25144
ENGCOM-2203: [Backport] Declare module namespace before template path…
magento-engcom-team Jul 6, 2018
899a8b7
ENGCOM-2203: [Backport] Declare module namespace before template path…
Jul 6, 2018
e39ca3e
Update Creditmemo.php
Sarvesh-A Jul 2, 2018
f4e6ca8
ENGCOM-2208: [Backport] Declare module namespace before template path…
magento-engcom-team Jul 6, 2018
6d26865
ENGCOM-2203: [Backport] Declare module namespace before template path…
Jul 6, 2018
bd95228
ENGCOM-2208: [Backport] Declare module namespace before template path…
Jul 6, 2018
b5f47a1
:arrows_clockwise: [EngCom] Public Pull Requests - 2.1-develop
Jul 6, 2018
93d9b57
Variable as a method parameter might be overridden by the loop
lfluvisotto Jul 2, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
57 changes: 57 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,60 @@
2.1.14
=============
* GitHub issues:
* [#7723](https://github.com/magento/magento2/issues/7723) -- Catalog rule contains-condition not saving multiple selection in 2.1.2 (fixed in [magento/magento2#13546](https://github.com/magento/magento2/pull/13546))
* [#13214](https://github.com/magento/magento2/issues/13214) -- Not a correct displaying for Robots.txt (fixed in [magento/magento2#13550](https://github.com/magento/magento2/pull/13550))
* [#13315](https://github.com/magento/magento2/issues/13315) -- Mobile "Payment Methods" step looks bad on mobile (fixed in [magento/magento2#13980](https://github.com/magento/magento2/pull/13980))
* [#13474](https://github.com/magento/magento2/issues/13474) -- [2.1.10] Swagger not working for multistore installs? (fixed in [magento/magento2#13486](https://github.com/magento/magento2/pull/13486))
* [#4173](https://github.com/magento/magento2/issues/4173) -- Cron schedule bug (fixed in [magento/magento2#14096](https://github.com/magento/magento2/pull/14096))
* [#5808](https://github.com/magento/magento2/issues/5808) -- [2.1.0] Problem on mobile when catalog gallery allowfullscreen is false (fixed in [magento/magento2#14098](https://github.com/magento/magento2/pull/14098))
* [#6694](https://github.com/magento/magento2/issues/6694) -- Override zip_codes.xml (fixed in [magento/magento2#14117](https://github.com/magento/magento2/pull/14117))
* [#10559](https://github.com/magento/magento2/issues/10559) -- Extending swatch functionality using javascript mixins does not work in Safari and MS Edge (fixed in [magento/magento2#12928](https://github.com/magento/magento2/pull/12928))
* [#3489](https://github.com/magento/magento2/issues/3489) -- CURL Json POST (fixed in [magento/magento2#14151](https://github.com/magento/magento2/pull/14151))
* [#5463](https://github.com/magento/magento2/issues/5463) -- The ability to store passwords using different hashing algorithms is limited (fixed in [magento/magento2#13886](https://github.com/magento/magento2/pull/13886))
* [#3882](https://github.com/magento/magento2/issues/3882) -- An XML comment node as parameter in widget.xml fails with fatal error (fixed in [magento/magento2#14219](https://github.com/magento/magento2/pull/14219))
* [#1931](https://github.com/magento/magento2/issues/1931) -- Can't cancel removal of a block or container in layout by setting remove attribute value to false (fixed in [magento/magento2#14198](https://github.com/magento/magento2/pull/14198))
* [#7403](https://github.com/magento/magento2/issues/7403) -- JS Translation Regex leads to unexpected results and untranslatable strings (fixed in [magento/magento2#14349](https://github.com/magento/magento2/pull/14349))
* [#7816](https://github.com/magento/magento2/issues/7816) -- Customer_account.xml file abused (fixed in [magento/magento2#14323](https://github.com/magento/magento2/pull/14323))
* [#10700](https://github.com/magento/magento2/issues/10700) -- Magento 2 Admin panel show loading on each page (fixed in [magento/magento2#14417](https://github.com/magento/magento2/pull/14417))
* [#11930](https://github.com/magento/magento2/issues/11930) -- setup:di:compile's generated cache files inaccessible by the web-server user (fixed in [magento/magento2#14417](https://github.com/magento/magento2/pull/14417))
* [#14572](https://github.com/magento/magento2/issues/14572) -- Specify the table when adding field to filter for the collection Eav/Model/ResourceModel/Entity/Attribute/Option/Collection.php (fixed in [magento/magento2#14596](https://github.com/magento/magento2/pull/14596))
* GitHub pull requests:
* [magento/magento2#13949](https://github.com/magento/magento2/pull/13949) -- Fix misnamed namespace (by @Ethan3600)
* [magento/magento2#13545](https://github.com/magento/magento2/pull/13545) -- Backport of PR-5028 for Magento 2.1: Load jquery using requirejs to p… (by @hostep)
* [magento/magento2#13546](https://github.com/magento/magento2/pull/13546) -- Backport of PR-8246 for Magento 2.1: Fixes #7723 - saving multi selec… (by @hostep)
* [magento/magento2#13550](https://github.com/magento/magento2/pull/13550) -- Backport of MAGETWO-84006 for Magento 2.1: Fix robots.txt content typ… (by @hostep)
* [magento/magento2#13896](https://github.com/magento/magento2/pull/13896) -- MAGETWO-59112 Backport 2.1.x (by @Ctucker9233)
* [magento/magento2#13812](https://github.com/magento/magento2/pull/13812) -- [Backport 2.1] Add RewriteBase directive template in .htaccess file into pub/static folder (by @ccasciotti)
* [magento/magento2#13658](https://github.com/magento/magento2/pull/13658) -- [Backport 2.1-develop] Show redirect_to_base config in store scope (by @JeroenVanLeusden)
* [magento/magento2#13980](https://github.com/magento/magento2/pull/13980) -- Backport of PR-13777. Mobile 'Payments methods' step looks bad on mobile (by @Frodigo)
* [magento/magento2#13987](https://github.com/magento/magento2/pull/13987) -- Backport of PR-13750 for Magento 2.1: Less clean up (by @Karlasa)
* [magento/magento2#14022](https://github.com/magento/magento2/pull/14022) -- fix catalog_rule_promo_catalog_edit.xml layout (by @Karlasa)
* [magento/magento2#13806](https://github.com/magento/magento2/pull/13806) -- [Backport 2.1] Add quoting for base path in DI compile command (by @simpleadm)
* [magento/magento2#13486](https://github.com/magento/magento2/pull/13486) -- [Backport 2.1-develop] Change the store code in Swagger based on a param (by @JeroenVanLeusden)
* [magento/magento2#14096](https://github.com/magento/magento2/pull/14096) -- [Backport 2.1] Schedule generation was broken (by @simpleadm)
* [magento/magento2#14098](https://github.com/magento/magento2/pull/14098) -- [Backport 2.1] MAGETWO-64250 Problem on mobile when catalog gallery allowfullscreen is false (by @simpleadm)
* [magento/magento2#14115](https://github.com/magento/magento2/pull/14115) -- [Backport 2.1] MAGETWO-71697: Fix possible bug when saving address with empty street line (by @simpleadm)
* [magento/magento2#14117](https://github.com/magento/magento2/pull/14117) -- [Backport 2.1] MAGETWO-59258: Override module-directory/etc/zip_codes.xml only the last code of a country gets include (by @simpleadm)
* [magento/magento2#12928](https://github.com/magento/magento2/pull/12928) -- Issues #10559 - Extend swatch using mixins (M2.1) (by @srenon)
* [magento/magento2#14151](https://github.com/magento/magento2/pull/14151) -- [Backport 2.1] 8373: Fix CURL Json POST (by @simpleadm)
* [magento/magento2#13886](https://github.com/magento/magento2/pull/13886) -- #5463 - Use specified hashing algo in \Magento\Framework\Encryption\Encryptor::getHash (by @k4emic)
* [magento/magento2#14168](https://github.com/magento/magento2/pull/14168) -- [Backport 2.1] Added mage/translate component to customers's ajax login (by @ccasciotti)
* [magento/magento2#13654](https://github.com/magento/magento2/pull/13654) -- [Backport 2.1-develop] Update Store getConfig() to respect valid false return value (by @JeroenVanLeusden)
* [magento/magento2#14219](https://github.com/magento/magento2/pull/14219) -- Backport of PR-8772 for Magento 2.1: magento/magento2#3882 (by @hostep)
* [magento/magento2#14198](https://github.com/magento/magento2/pull/14198) -- [Backport] Can't cancel removal of a block or container in layout by setting remove attribute value to false (by @quisse)
* [magento/magento2#14349](https://github.com/magento/magento2/pull/14349) -- Backport of PR-10445 for Magento 2.1: Fix JS translation search (by @hostep)
* [magento/magento2#14332](https://github.com/magento/magento2/pull/14332) -- Backport: Fix for broken navigation menu on IE11 #14230 (by @sergiy-v)
* [magento/magento2#14323](https://github.com/magento/magento2/pull/14323) -- #7816: Customer_account.xml file abused (2.1) (by @mikewhitby)
* [magento/magento2#14417](https://github.com/magento/magento2/pull/14417) -- [BACKPORT 2.1] Removed cache backend option which explicitly set file permissions (by @xtremeperf)
* [magento/magento2#14436](https://github.com/magento/magento2/pull/14436) -- Fix HTML tags in meta description (by @vseager)
* [magento/magento2#14480](https://github.com/magento/magento2/pull/14480) -- [Backport 2.1] Return status in console commands (by @simpleadm)
* [magento/magento2#14497](https://github.com/magento/magento2/pull/14497) -- [backport] fix for button color in email template (by @Karlasa)
* [magento/magento2#14348](https://github.com/magento/magento2/pull/14348) -- [Backport 2.1] Add json and xml support to the post method in socket client (by @simpleadm)
* [magento/magento2#14479](https://github.com/magento/magento2/pull/14479) -- [Backport 2.1] Configurable product price options by store (by @simpleadm)
* [magento/magento2#14505](https://github.com/magento/magento2/pull/14505) -- [Backport] Check if store id is not null instead of empty (by @quisse)
* [magento/magento2#14524](https://github.com/magento/magento2/pull/14524) -- [backport] fix translation issue with rating stars (by @Karlasa)
* [magento/magento2#14596](https://github.com/magento/magento2/pull/14596) -- Specify the table when adding field to filter (by @PierreLeMaguer)

2.1.13
=============
* GitHub issues:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ public function testGetIdentity($expectedSum, $cacheTypes)
$this->assertEquals($expectedSum, $this->_messageModel->getIdentity());
}

/**
* @return array
*/
public function getIdentityDataProvider()
{
$cacheTypeMock1 = $this->getMock('stdClass', ['getCacheType']);
Expand Down Expand Up @@ -95,6 +98,9 @@ public function testIsDisplayed($expected, $allowed, $cacheTypes)
$this->assertEquals($expected, $this->_messageModel->isDisplayed());
}

/**
* @return array
*/
public function isDisplayedDataProvider()
{
$cacheTypesMock = $this->getMock('stdClass', ['getCacheType']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ public function testIsDisplayed($expectedFirstRun, $data)
$this->assertEquals($expectedFirstRun, $model->isDisplayed());
}

/**
* @return array
*/
public function isDisplayedDataProvider()
{
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ public function testIsDisplayed($expectedResult, $cached, $response)
$this->assertEquals($expectedResult, $this->_messageModel->isDisplayed());
}

/**
* @return array
*/
public function isDisplayedDataProvider()
{
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ public function testIsValidAddMessagesCall($value, $hasEmptyColumns, $customerGr
$this->tierPrice->isValid($value);
}

/**
* @return array
*/
public function isValidResultFalseDataProvider()
{
return [
Expand Down Expand Up @@ -303,6 +306,9 @@ public function isValidResultFalseDataProvider()
];
}

/**
* @return array
*/
public function isValidAddMessagesCallDataProvider()
{
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ public function testGetAllWebsitesValue()
$this->assertEquals($expectedResult, $result);
}

/**
* @return array
*/
public function isValidReturnDataProvider()
{
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ public function testInit()
$this->validator->init(null);
}

/**
* @return array
*/
public function isValidDataProvider()
{
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,9 @@ public function testSaveProductPrices($priceData, $oldSkus, $priceIn, $callNum)
$this->invokeMethod($this->advancedPricing, 'saveProductPrices', [$priceData, 'table']);
}

/**
* @return array
*/
public function saveProductPricesDataProvider()
{
return [
Expand Down Expand Up @@ -822,6 +825,9 @@ public function testDeleteProductTierPrices(
);
}

/**
* @return array
*/
public function deleteProductTierPricesDataProvider()
{
return [
Expand Down Expand Up @@ -904,6 +910,9 @@ public function testProcessCountExistingPrices(
$this->invokeMethod($this->advancedPricing, 'processCountExistingPrices', [$prices, 'table']);
}

/**
* @return array
*/
public function processCountExistingPricesDataProvider()
{
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ public function testGetAllowedResourcesByUser()
);
}

/**
* @return AclRetriever
*/
protected function createAclRetriever()
{
$this->roleMock = $this->getMock(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ public function testGenerateHash($merchantMd5, $merchantApiLogin, $amount, $amou
);
}

/**
* @return array
*/
public function generateHashDataProvider()
{
return [
Expand All @@ -57,6 +60,13 @@ public function generateHashDataProvider()
];
}

/**
* @param $merchantMd5
* @param $merchantApiLogin
* @param $amount
* @param $transactionId
* @return string
*/
protected function generateHash($merchantMd5, $merchantApiLogin, $amount, $transactionId)
{
return strtoupper(md5($merchantMd5 . $merchantApiLogin . $transactionId . $amount));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ class BackendModel extends Value
/** Minimum admin session lifetime */
const MIN_LIFETIME = 60;

/**
* @return Value
* @throws LocalizedException
*/
public function beforeSave()
{
$value = (int) $this->getValue();
Expand Down
8 changes: 8 additions & 0 deletions app/code/Magento/Backend/Model/View/Layout/Reader/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@
*/
class Block extends Layout\Reader\Block
{
/**
* Block constructor.
* @param Layout\ScheduledStructure\Helper $helper
* @param Layout\Argument\Parser $argumentParser
* @param Layout\ReaderPool $readerPool
* @param InterpreterInterface $argumentInterpreter
* @param null $scopeType
*/
public function __construct(
Layout\ScheduledStructure\Helper $helper,
Layout\Argument\Parser $argumentParser,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ public function testProcessNotLoggedInUser($isIFrameParam, $isAjaxParam, $isForw
$this->assertEquals($expectedResult, $this->plugin->aroundDispatch($subject, $proceed, $request));
}

/**
* @return array
*/
public function processNotLoggedInUserDataProvider()
{
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ public function testAroundDispatchWhenMassactionPrepareKeyRequestExists($postDat
);
}

/**
* @return array
*/
public function aroundDispatchDataProvider()
{
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

class ActionStub extends \Magento\Backend\App\Action
{
/**
* @return \Magento\Framework\App\ResponseInterface|\Magento\Framework\Controller\ResultInterface|void
*/
public function execute()
{
// Empty method stub for test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ public function testIsHostBackend($url, $host, $useCustomAdminUrl, $customAdminU
$this->assertEquals($this->model->isHostBackend(), $expectedValue);
}

/**
* @return array
*/
public function hostsDataProvider()
{
return [
Expand Down
3 changes: 3 additions & 0 deletions app/code/Magento/Backend/Test/Unit/App/ConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ public function testIsSetFlag($configPath, $configValue, $expectedResult)
$this->assertEquals($expectedResult, $this->model->isSetFlag($configPath));
}

/**
* @return array
*/
public function isSetFlagDataProvider()
{
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ public function testIsInProductionMode($mode, $expected)
$this->assertEquals($expected, $this->additonalBlock->isInProductionMode());
}

/**
* @return array
*/
public function isInProductionModeDataProvider()
{
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ public function testGetAttributesHtml($data, $expect)
$this->assertRegExp($expect, $attributes);
}

/**
* @return array
*/
public function getAttributesHtmlDataProvider()
{
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ public function testRender(array $rowData, $expectedResult)
$this->assertEquals($expectedResult, $this->_object->render(new \Magento\Framework\DataObject($rowData)));
}

/**
* @return array
*/
public function renderDataProvider()
{
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ public function testRender(array $rowData, $expectedResult)
$this->assertEquals($expectedResult, $this->_object->render(new \Magento\Framework\DataObject($rowData)));
}

/**
* @return array
*/
public function renderDataProvider()
{
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ public function testGetSortable($value)
$this->assertFalse($this->_block->getSortable());
}

/**
* @return array
*/
public function getSortableDataProvider()
{
return ['zero' => ['0'], 'false' => [false], 'null' => [null]];
Expand Down Expand Up @@ -379,6 +382,9 @@ public function testColumnIsGrouped($groupedData, $expected)
$this->assertEquals($expected, $block->isGrouped());
}

/**
* @return array
*/
public function columnGroupedDataProvider()
{
return [[[], false], [['grouped' => 0], false], [['grouped' => 1], true]];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ public function testGetGridIdsJsonWithUseSelectAll(array $items, $result)
$this->assertEquals($result, $this->_block->getGridIdsJson());
}

/**
* @return array
*/
public function dataProviderGetGridIdsJsonWithUseSelectAll()
{
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ public function testItemsProcessing($itemId, $item, $expectedItem)
$this->assertNull($this->_block->getItem($itemId));
}

/**
* @return array
*/
public function itemsDataProvider()
{
return [
Expand Down Expand Up @@ -204,6 +207,9 @@ public function testSelected($param, $expectedJson, $expected)
$this->assertEquals($expected, $this->_block->getSelected());
}

/**
* @return array
*/
public function selectedDataProvider()
{
return [
Expand Down Expand Up @@ -259,6 +265,9 @@ public function testGetGridIdsJsonWithUseSelectAll(array $items, $result)
$this->assertEquals($result, $this->_block->getGridIdsJson());
}

/**
* @return array
*/
public function dataProviderGetGridIdsJsonWithUseSelectAll()
{
return [
Expand Down
3 changes: 3 additions & 0 deletions app/code/Magento/Backend/Test/Unit/Block/Widget/TabTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public function testGetters($method, $field, $value, $expected)
$this->assertEquals($expected, $object->{$method}());
}

/**
* @return array
*/
public function dataProvider()
{
return [
Expand Down
Loading