Skip to content

Commit

Permalink
Fix variable exceeding max character length
Browse files Browse the repository at this point in the history
  • Loading branch information
tdgroot committed Oct 26, 2017
1 parent 6b325e1 commit 3cf3ce6
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions app/code/Magento/Quote/Test/Unit/Model/ResourceModel/QuoteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,27 @@

namespace Magento\Quote\Test\Unit\Model\ResourceModel;

use Magento\Framework\DB\Sequence\SequenceInterface;
use Magento\Framework\Model\ResourceModel\Db\Context;
use Magento\Framework\Model\ResourceModel\Db\VersionControl\RelationComposite;
use Magento\Framework\Model\ResourceModel\Db\VersionControl\Snapshot;
use Magento\Quote\Model\Quote;
use Magento\SalesSequence\Model\Manager;

class QuoteTest extends \PHPUnit\Framework\TestCase
{
/**
* @var \Magento\Quote\Model\Quote|\PHPUnit_Framework_MockObject_MockObject
* @var Quote|\PHPUnit_Framework_MockObject_MockObject
*/
private $quoteMock;

/**
* @var \Magento\SalesSequence\Model\Manager|\PHPUnit_Framework_MockObject_MockObject
* @var Manager|\PHPUnit_Framework_MockObject_MockObject
*/
private $sequenceManagerMock;

/**
* @var \Magento\Framework\DB\Sequence\SequenceInterface|\PHPUnit_Framework_MockObject_MockObject
* @var SequenceInterface|\PHPUnit_Framework_MockObject_MockObject
*/
private $sequenceMock;

Expand All @@ -33,28 +40,28 @@ class QuoteTest extends \PHPUnit\Framework\TestCase
*/
protected function setUp()
{
$context = $this->getMockBuilder(\Magento\Framework\Model\ResourceModel\Db\Context::class)
$context = $this->getMockBuilder(Context::class)
->disableOriginalConstructor()
->getMock();
$snapshot = $this->getMockBuilder(\Magento\Framework\Model\ResourceModel\Db\VersionControl\Snapshot::class)
$snapshot = $this->getMockBuilder(Snapshot::class)
->disableOriginalConstructor()
->getMock();
$entityRelationComposite = $this->getMockBuilder(\Magento\Framework\Model\ResourceModel\Db\VersionControl\RelationComposite::class)
$relationComposite = $this->getMockBuilder(RelationComposite::class)
->disableOriginalConstructor()
->getMock();
$this->quoteMock = $this->getMockBuilder(\Magento\Quote\Model\Quote::class)
$this->quoteMock = $this->getMockBuilder(Quote::class)
->disableOriginalConstructor()
->getMock();
$this->sequenceManagerMock = $this->getMockBuilder(\Magento\SalesSequence\Model\Manager::class)
$this->sequenceManagerMock = $this->getMockBuilder(Manager::class)
->disableOriginalConstructor()
->getMock();
$this->sequenceMock = $this->getMockBuilder(\Magento\Framework\DB\Sequence\SequenceInterface::class)
$this->sequenceMock = $this->getMockBuilder(SequenceInterface::class)
->disableOriginalConstructor()
->getMock();
$this->quote = new \Magento\Quote\Model\ResourceModel\Quote(
$context,
$snapshot,
$entityRelationComposite,
$relationComposite,
$this->sequenceManagerMock,
null
);
Expand Down Expand Up @@ -93,4 +100,4 @@ public function getReservedOrderIdDataProvider(): array
[\Magento\Sales\Model\Order::ENTITY, 3, '3000000001']
];
}
}
}

0 comments on commit 3cf3ce6

Please sign in to comment.