File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed
dev/tests/integration/testsuite/Magento/Sales/Model Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 7
7
namespace Magento \Sales \Model ;
8
8
9
9
/**
10
- * This class uses for checking if reserved order id was already used for some order
10
+ * This class uses for checking if reserved order id was already used for some order.
11
11
*/
12
12
class OrderIncrementIdChecker
13
13
{
Original file line number Diff line number Diff line change 6
6
7
7
namespace Magento \Sales \Test \Unit \Model ;
8
8
9
+ /**
10
+ * Tests \Magento\Sales\Model\OrderIncrementIdChecker.
11
+ */
9
12
class OrderIncrementIdCheckerTest extends \PHPUnit_Framework_TestCase
10
13
{
11
14
/**
@@ -59,13 +62,13 @@ protected function setUp()
59
62
$ this ->model = $ objectManagerHelper ->getObject (
60
63
\Magento \Sales \Model \OrderIncrementIdChecker::class,
61
64
[
62
- 'resourceModel ' => $ this ->resourceMock
65
+ 'resourceModel ' => $ this ->resourceMock ,
63
66
]
64
67
);
65
68
}
66
69
67
70
/**
68
- * Unit test to verify if isOrderIncrementIdUsed method works with different types increment ids
71
+ * Unit test to verify if isOrderIncrementIdUsed method works with different types increment ids.
69
72
*
70
73
* @param array $value
71
74
* @return void
Original file line number Diff line number Diff line change 7
7
namespace Magento \Sales \Model ;
8
8
9
9
/**
10
- * Class QuoteTest to verify isOrderIncrementIdUsed method behaviour
10
+ * Class OrderIncrementIdCheckerTest to verify isIncrementIdUsed method behaviour.
11
11
*/
12
12
class OrderIncrementIdCheckerTest extends \PHPUnit_Framework_TestCase
13
13
{
@@ -27,23 +27,23 @@ protected function setUp()
27
27
}
28
28
29
29
/**
30
- * Test to verify if isOrderIncrementIdUsed method works with numeric increment ids
30
+ * Test to verify if isIncrementIdUsed method works with numeric increment ids.
31
31
*
32
32
* @magentoDataFixture Magento/Sales/_files/order.php
33
33
* @return void
34
34
*/
35
- public function testIsOrderIncrementIdUsedNumericIncrementId ()
35
+ public function testIsIncrementIdUsedNumericIncrementId ()
36
36
{
37
37
$ this ->assertTrue ($ this ->checker ->isIncrementIdUsed ('100000001 ' ));
38
38
}
39
39
40
40
/**
41
- * Test to verify if isOrderIncrementIdUsed method works with alphanumeric increment ids
41
+ * Test to verify if IsIncrementIdUsed method works with alphanumeric increment ids.
42
42
*
43
43
* @magentoDataFixture Magento/Sales/_files/order_alphanumeric_id.php
44
44
* @return void
45
45
*/
46
- public function testIsOrderIncrementIdUsedAlphanumericIncrementId ()
46
+ public function testIsIncrementIdUsedAlphanumericIncrementId ()
47
47
{
48
48
$ this ->assertTrue ($ this ->checker ->isIncrementIdUsed ('M00000001 ' ));
49
49
}
You can’t perform that action at this time.
0 commit comments