Skip to content

Commit 0e9ed86

Browse files
author
Leandro Ferraz Luvisotto
committed
PHPDoc
1 parent 695aaf8 commit 0e9ed86

File tree

622 files changed

+3217
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

622 files changed

+3217
-1
lines changed

app/code/Magento/AdminNotification/Test/Unit/Model/System/Message/CacheOutdatedTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ public function testGetIdentity($expectedSum, $cacheTypes)
6262
$this->assertEquals($expectedSum, $this->_messageModel->getIdentity());
6363
}
6464

65+
/**
66+
* @return array
67+
*/
6568
public function getIdentityDataProvider()
6669
{
6770
$cacheTypeMock1 = $this->createPartialMock(\stdClass::class, ['getCacheType']);
@@ -95,6 +98,9 @@ public function testIsDisplayed($expected, $allowed, $cacheTypes)
9598
$this->assertEquals($expected, $this->_messageModel->isDisplayed());
9699
}
97100

101+
/**
102+
* @return array
103+
*/
98104
public function isDisplayedDataProvider()
99105
{
100106
$cacheTypesMock = $this->createPartialMock(\stdClass::class, ['getCacheType']);

app/code/Magento/AdminNotification/Test/Unit/Model/System/Message/Media/Synchronization/ErrorTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ public function testIsDisplayed($expectedFirstRun, $data)
7272
$this->assertEquals($expectedFirstRun, $model->isDisplayed());
7373
}
7474

75+
/**
76+
* @return array
77+
*/
7578
public function isDisplayedDataProvider()
7679
{
7780
return [

app/code/Magento/AdminNotification/Test/Unit/Model/System/Message/SecurityTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ public function testIsDisplayed($expectedResult, $cached, $response)
7676
$this->assertEquals($expectedResult, $this->_messageModel->isDisplayed());
7777
}
7878

79+
/**
80+
* @return array
81+
*/
7982
public function isDisplayedDataProvider()
8083
{
8184
return [

app/code/Magento/AdvancedPricingImportExport/Test/Unit/Model/Import/AdvancedPricing/Validator/TierPriceTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ public function testIsValidAddMessagesCall($value, $hasEmptyColumns, $customerGr
181181
$this->tierPrice->isValid($value);
182182
}
183183

184+
/**
185+
* @return array
186+
*/
184187
public function isValidResultFalseDataProvider()
185188
{
186189
return [
@@ -286,6 +289,9 @@ public function isValidResultFalseDataProvider()
286289
];
287290
}
288291

292+
/**
293+
* @return array
294+
*/
289295
public function isValidAddMessagesCallDataProvider()
290296
{
291297
return [

app/code/Magento/AdvancedPricingImportExport/Test/Unit/Model/Import/AdvancedPricing/Validator/WebsiteTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ public function testGetAllWebsitesValue()
114114
$this->assertEquals($expectedResult, $result);
115115
}
116116

117+
/**
118+
* @return array
119+
*/
117120
public function isValidReturnDataProvider()
118121
{
119122
return [

app/code/Magento/AdvancedPricingImportExport/Test/Unit/Model/Import/AdvancedPricing/ValidatorTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ public function testInit()
7777
$this->validator->init(null);
7878
}
7979

80+
/**
81+
* @return array
82+
*/
8083
public function isValidDataProvider()
8184
{
8285
return [

app/code/Magento/AdvancedPricingImportExport/Test/Unit/Model/Import/AdvancedPricingTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,9 @@ public function testSaveProductPrices($priceData, $oldSkus, $priceIn, $callNum)
768768
$this->invokeMethod($this->advancedPricing, 'saveProductPrices', [$priceData, 'table']);
769769
}
770770

771+
/**
772+
* @return array
773+
*/
771774
public function saveProductPricesDataProvider()
772775
{
773776
return [
@@ -839,6 +842,9 @@ public function testDeleteProductTierPrices(
839842
);
840843
}
841844

845+
/**
846+
* @return array
847+
*/
842848
public function deleteProductTierPricesDataProvider()
843849
{
844850
return [
@@ -921,6 +927,9 @@ public function testProcessCountExistingPrices(
921927
$this->invokeMethod($this->advancedPricing, 'processCountExistingPrices', [$prices, 'table']);
922928
}
923929

930+
/**
931+
* @return array
932+
*/
924933
public function processCountExistingPricesDataProvider()
925934
{
926935
return [

app/code/Magento/Authorization/Test/Unit/Model/Acl/AclRetrieverTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ public function testGetAllowedResourcesByUser()
7878
);
7979
}
8080

81+
/**
82+
* @return AclRetriever
83+
*/
8184
protected function createAclRetriever()
8285
{
8386
$this->roleMock = $this->createPartialMock(\Magento\Authorization\Model\Role::class, ['getId', '__wakeup']);

app/code/Magento/Authorizenet/Test/Unit/Model/Directpost/ResponseTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ public function testGenerateHash($merchantMd5, $merchantApiLogin, $amount, $amou
3737
);
3838
}
3939

40+
/**
41+
* @return array
42+
*/
4043
public function generateHashDataProvider()
4144
{
4245
return [
@@ -57,6 +60,14 @@ public function generateHashDataProvider()
5760
];
5861
}
5962

63+
/**
64+
* @param $merchantMd5
65+
* @param $merchantApiLogin
66+
* @param $amount
67+
* @param $transactionId
68+
*
69+
* @return string
70+
*/
6071
protected function generateHash($merchantMd5, $merchantApiLogin, $amount, $transactionId)
6172
{
6273
return strtoupper(md5($merchantMd5 . $merchantApiLogin . $transactionId . $amount));

app/code/Magento/Backend/Test/Unit/App/Action/Plugin/AuthenticationTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ public function testProcessNotLoggedInUser($isIFrameParam, $isAjaxParam, $isForw
146146
$this->assertEquals($expectedResult, $this->plugin->aroundDispatch($subject, $proceed, $request));
147147
}
148148

149+
/**
150+
* @return array
151+
*/
149152
public function processNotLoggedInUserDataProvider()
150153
{
151154
return [

app/code/Magento/Backend/Test/Unit/App/Action/Plugin/MassactionKeyTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ public function testBeforeDispatchWhenMassactionPrepareKeyRequestExists($postDat
7474
$this->plugin->beforeDispatch($this->subjectMock, $this->requestMock);
7575
}
7676

77+
/**
78+
* @return array
79+
*/
7780
public function beforeDispatchDataProvider()
7881
{
7982
return [

app/code/Magento/Backend/Test/Unit/App/Action/Stub/ActionStub.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
class ActionStub extends \Magento\Backend\App\Action
1010
{
11+
/**
12+
* @return \Magento\Framework\App\ResponseInterface|\Magento\Framework\Controller\ResultInterface|void
13+
*/
1114
public function execute()
1215
{
1316
// Empty method stub for test

app/code/Magento/Backend/Test/Unit/App/Area/FrontNameResolverTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ public function testIsHostBackend($url, $host, $useCustomAdminUrl, $customAdminU
118118
$this->assertEquals($this->model->isHostBackend(), $expectedValue);
119119
}
120120

121+
/**
122+
* @return array
123+
*/
121124
public function hostsDataProvider()
122125
{
123126
return [

app/code/Magento/Backend/Test/Unit/App/ConfigTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ public function testIsSetFlag($configPath, $configValue, $expectedResult)
7070
$this->assertEquals($expectedResult, $this->model->isSetFlag($configPath));
7171
}
7272

73+
/**
74+
* @return array
75+
*/
7376
public function isSetFlagDataProvider()
7477
{
7578
return [

app/code/Magento/Backend/Test/Unit/Block/AnchorRendererTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ public function testRenderAnchorLevelIsNotOne($hasTarget)
141141
);
142142
}
143143

144+
/**
145+
* @return array
146+
*/
144147
public function targetDataProvider()
145148
{
146149
return [

app/code/Magento/Backend/Test/Unit/Block/Cache/AdditionalTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ public function testIsInProductionMode($mode, $expected)
8888
$this->assertEquals($expected, $this->additonalBlock->isInProductionMode());
8989
}
9090

91+
/**
92+
* @return array
93+
*/
9194
public function isInProductionModeDataProvider()
9295
{
9396
return [

app/code/Magento/Backend/Test/Unit/Block/GlobalSearchTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ public function testGetEntitiesToShow(array $results, int $expectedEntitiesQty)
103103
$this->assertSame($expectedEntitiesQty, count($this->globalSearch->getEntitiesToShow()));
104104
}
105105

106+
/**
107+
* @return array
108+
*/
106109
public function getEntitiesToShowDataProvider()
107110
{
108111
return [

app/code/Magento/Backend/Test/Unit/Block/MenuItemCheckerTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ public function testIsItemActiveLevelNotZero()
7474
);
7575
}
7676

77+
/**
78+
* @return array
79+
*/
7780
public function dataProvider()
7881
{
7982
return [

app/code/Magento/Backend/Test/Unit/Block/Widget/ButtonTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ public function testGetAttributesHtml($data, $expect)
6161
$this->assertRegExp($expect, $attributes);
6262
}
6363

64+
/**
65+
* @return array
66+
*/
6467
public function getAttributesHtmlDataProvider()
6568
{
6669
return [

app/code/Magento/Backend/Test/Unit/Block/Widget/Grid/Column/Renderer/Radio/ExtendedTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ public function testRender(array $rowData, $expectedResult)
5454
$this->assertEquals($expectedResult, $this->_object->render(new \Magento\Framework\DataObject($rowData)));
5555
}
5656

57+
/**
58+
* @return array
59+
*/
5760
public function renderDataProvider()
5861
{
5962
return [

app/code/Magento/Backend/Test/Unit/Block/Widget/Grid/Column/Renderer/RadioTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ public function testRender(array $rowData, $expectedResult)
6363
$this->assertEquals($expectedResult, $this->_object->render(new \Magento\Framework\DataObject($rowData)));
6464
}
6565

66+
/**
67+
* @return array
68+
*/
6669
public function renderDataProvider()
6770
{
6871
return [

app/code/Magento/Backend/Test/Unit/Block/Widget/Grid/ColumnTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ public function testGetSortable($value)
8686
$this->assertFalse($this->_block->getSortable());
8787
}
8888

89+
/**
90+
* @return array
91+
*/
8992
public function getSortableDataProvider()
9093
{
9194
return ['zero' => ['0'], 'false' => [false], 'null' => [null]];
@@ -374,6 +377,9 @@ public function testColumnIsGrouped($groupedData, $expected)
374377
$this->assertEquals($expected, $block->isGrouped());
375378
}
376379

380+
/**
381+
* @return array
382+
*/
377383
public function columnGroupedDataProvider()
378384
{
379385
return [[[], false], [['grouped' => 0], false], [['grouped' => 1], true]];

app/code/Magento/Backend/Test/Unit/Block/Widget/Grid/Massaction/ExtendedTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ public function testGetGridIdsJsonWithUseSelectAll(array $items, $result)
152152
$this->assertEquals($result, $this->_block->getGridIdsJson());
153153
}
154154

155+
/**
156+
* @return array
157+
*/
155158
public function dataProviderGetGridIdsJsonWithUseSelectAll()
156159
{
157160
return [

app/code/Magento/Backend/Test/Unit/Block/Widget/Grid/MassactionTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,9 @@ public function testSelected($param, $expectedJson, $expected)
243243
$this->assertEquals($expected, $this->_block->getSelected());
244244
}
245245

246+
/**
247+
* @return array
248+
*/
246249
public function selectedDataProvider()
247250
{
248251
return [

app/code/Magento/Backend/Test/Unit/Block/Widget/TabTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ public function testGetters($method, $field, $value, $expected)
3434
$this->assertEquals($expected, $object->{$method}());
3535
}
3636

37+
/**
38+
* @return array
39+
*/
3740
public function dataProvider()
3841
{
3942
return [

app/code/Magento/Backend/Test/Unit/Helper/DataTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ public function testPrepareFilterStringValues(array $inputString, array $expecte
6060
$this->assertEquals($expected, $actual);
6161
}
6262

63+
/**
64+
* @return array
65+
*/
6366
public function getPrepareFilterStringValuesDataProvider()
6467
{
6568
return [

app/code/Magento/Backend/Test/Unit/Model/Auth/SessionTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ public function testRefreshAcl($isUserPassedViaParams)
120120
$this->assertSame($aclMock, $this->session->getAcl());
121121
}
122122

123+
/**
124+
* @return array
125+
*/
123126
public function refreshAclDataProvider()
124127
{
125128
return [
@@ -234,6 +237,9 @@ public function testIsAllowed($isUserDefined, $isAclDefined, $isAllowed, $expect
234237
$this->assertEquals($expectedResult, $this->session->isAllowed('resource'));
235238
}
236239

240+
/**
241+
* @return array
242+
*/
237243
public function isAllowedDataProvider()
238244
{
239245
return [
@@ -254,6 +260,9 @@ public function testFirstPageAfterLogin($isFirstPageAfterLogin)
254260
$this->assertEquals($isFirstPageAfterLogin, $this->session->isFirstPageAfterLogin());
255261
}
256262

263+
/**
264+
* @return array
265+
*/
257266
public function firstPageAfterLoginDataProvider()
258267
{
259268
return [

app/code/Magento/Backend/Test/Unit/Model/Config/SessionLifetime/BackendModelTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ public function testBeforeSave($value, $errorMessage = null)
2828
$this->assertEquals($model, $object);
2929
}
3030

31+
/**
32+
* @return array
33+
*/
3134
public function adminSessionLifetimeDataProvider()
3235
{
3336
return [

app/code/Magento/Backend/Test/Unit/Model/Menu/ConfigTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ public function testGetMenuExceptionLogged($expectedException)
140140
$this->model->getMenu();
141141
}
142142

143+
/**
144+
* @return array
145+
*/
143146
public function getMenuExceptionLoggedDataProvider()
144147
{
145148
return [

app/code/Magento/Backend/Test/Unit/Model/Menu/Item/ValidatorTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ public function testValidateWithMissingRequiredParamThrowsException($requiredPar
7979
}
8080
}
8181

82+
/**
83+
* @return array
84+
*/
8285
public function requiredParamsProvider()
8386
{
8487
return [['id'], ['title'], ['resource']];
@@ -102,6 +105,9 @@ public function testValidateWithNonValidPrimitivesThrowsException($param, $inval
102105
}
103106
}
104107

108+
/**
109+
* @return array
110+
*/
105111
public function invalidParamsProvider()
106112
{
107113
return [

0 commit comments

Comments
 (0)