Skip to content

Commit fea2329

Browse files
committed
MAGETWO-50972: Move to Shopping Cart action does not work inside creation offline order
- Fix static tests
1 parent 7d71288 commit fea2329

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

app/code/Magento/Quote/Test/Unit/Model/QuoteRepositoryTest.php

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77

88
namespace Magento\Quote\Test\Unit\Model;
99

10-
use Magento\Quote\Api\CartRepositoryInterface;
11-
1210
use Magento\Framework\Api\SortOrder;
1311
use Magento\Framework\Api\ExtensionAttribute\JoinProcessorInterface;
1412
use Magento\Quote\Model\QuoteRepository\LoadHandler;
1513

14+
/**
15+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
16+
*/
1617
class QuoteRepositoryTest extends \PHPUnit_Framework_TestCase
1718
{
1819
/**
@@ -170,8 +171,8 @@ public function testGet()
170171
->method('load')
171172
->with($this->quoteMock);
172173

173-
$this->assertEquals($this->quoteMock, $this->model->get($cartId));
174-
$this->assertEquals($this->quoteMock, $this->model->get($cartId));
174+
static::assertEquals($this->quoteMock, $this->model->get($cartId));
175+
static::assertEquals($this->quoteMock, $this->model->get($cartId));
175176
}
176177

177178
public function testGetForCustomerAfterGet()
@@ -208,8 +209,8 @@ public function testGetForCustomerAfterGet()
208209
->method('load')
209210
->with($this->quoteMock);
210211

211-
$this->assertEquals($this->quoteMock, $this->model->get($cartId));
212-
$this->assertEquals($this->quoteMock, $this->model->getForCustomer($customerId));
212+
static::assertEquals($this->quoteMock, $this->model->get($cartId));
213+
static::assertEquals($this->quoteMock, $this->model->getForCustomer($customerId));
213214
}
214215

215216
public function testGetWithSharedStoreIds()
@@ -263,8 +264,8 @@ public function testGetForCustomer()
263264
->method('load')
264265
->with($this->quoteMock);
265266

266-
$this->assertEquals($this->quoteMock, $this->model->getForCustomer($customerId));
267-
$this->assertEquals($this->quoteMock, $this->model->getForCustomer($customerId));
267+
static::assertEquals($this->quoteMock, $this->model->getForCustomer($customerId));
268+
static::assertEquals($this->quoteMock, $this->model->getForCustomer($customerId));
268269
}
269270

270271
/**

0 commit comments

Comments
 (0)