5
5
*/
6
6
namespace Magento \AdvancedPricingImportExport \Test \Unit \Model \Export ;
7
7
8
- use Magento \Framework \TestFramework \Unit \Helper \ObjectManager as ObjectManagerHelper ;
9
8
use \Magento \Store \Model \Store ;
10
9
11
10
/**
@@ -98,8 +97,14 @@ class ExportTest extends \PHPUnit_Framework_TestCase
98
97
*/
99
98
protected $ rowCustomizer ;
100
99
100
+ /**
101
+ * @var \Magento\CatalogImportExport\Model\Import\Product\StoreResolver|\PHPUnit_Framework_MockObject_MockObject
102
+ */
101
103
protected $ storeResolver ;
102
104
105
+ /**
106
+ * @var \Magento\Customer\Api\GroupRepositoryInterface|\PHPUnit_Framework_MockObject_MockObject
107
+ */
103
108
protected $ groupRepository ;
104
109
105
110
/**
@@ -112,14 +117,14 @@ class ExportTest extends \PHPUnit_Framework_TestCase
112
117
*/
113
118
protected $ advancedPricing ;
114
119
115
- protected $ _entityTypeCode ;
116
-
117
-
118
120
/**
119
121
* @var StubProduct|\Magento\CatalogImportExport\Model\Export\Product
120
122
*/
121
123
protected $ object ;
122
124
125
+ /**
126
+ * Set Up
127
+ */
123
128
protected function setUp ()
124
129
{
125
130
$ this ->localeDate = $ this ->getMock (
@@ -343,7 +348,10 @@ protected function setUp()
343
348
);
344
349
}
345
350
346
- public function testExportCountZeroBreakInternalCalls ()
351
+ /**
352
+ * Test export with zero condition
353
+ */
354
+ public function testExportZeroConditionCalls ()
347
355
{
348
356
$ page = 1 ;
349
357
$ itemsPerPage = 10 ;
@@ -367,7 +375,10 @@ public function testExportCountZeroBreakInternalCalls()
367
375
$ this ->advancedPricing ->export ();
368
376
}
369
377
370
- public function testExportCurPageEqualToLastBreakInternalCalls ()
378
+ /**
379
+ * Test export for current page
380
+ */
381
+ public function testExportCurrentPageCalls ()
371
382
{
372
383
$ curPage = $ lastPage = $ page = 1 ;
373
384
$ itemsPerPage = 10 ;
@@ -420,6 +431,9 @@ public function testExportCurPageEqualToLastBreakInternalCalls()
420
431
$ this ->advancedPricing ->export ();
421
432
}
422
433
434
+ /**
435
+ * tearDown
436
+ */
423
437
protected function tearDown ()
424
438
{
425
439
unset($ this ->object );
0 commit comments