Skip to content

Commit

Permalink
Issue-25968 - Small adjustments after code review
Browse files Browse the repository at this point in the history
  • Loading branch information
a.chorniy committed Jan 15, 2020
1 parent 28e8e5a commit 71da244
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/code/Magento/Sales/Test/Unit/Model/Order/ItemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
namespace Magento\Sales\Test\Unit\Model\Order;

use Magento\Framework\Serialize\Serializer\Json;
use Magento\Sales\Model\ResourceModel\OrderFactory;
use \Magento\Sales\Model\Order;
use Magento\Sales\Api\Data\OrderItemInterface;
use Magento\Sales\Model\ResourceModel\OrderFactory;

/**
* Unit test for order item class.
Expand Down Expand Up @@ -349,7 +348,7 @@ public function getItemQtyVariants()
}

/**
* Test getPrice() method should returns float
* Test getPrice() method returns float
*/
public function testGetPriceReturnsFloat()
{
Expand All @@ -359,13 +358,12 @@ public function testGetPriceReturnsFloat()
}

/**
* Test getPrice() method should returns null
* Test getPrice() method returns null
*/
public function testGetPriceReturnsNull()
{
$nullablePrice = null;
$this->model->setData(OrderItemInterface::PRICE, $nullablePrice);
$this->assertEquals($nullablePrice, $this->model->getPrice());
}

}

0 comments on commit 71da244

Please sign in to comment.