예제 #1
0
파일: CartTest.php 프로젝트: qantus/Cart
 public function testCartItem()
 {
     $item = new Product(['price' => 10, 'id' => 1]);
     $this->assertEquals(10, $item->getPrice());
     $this->assertEquals(1, $item->getUniqueId());
     $this->assertInstanceOf('\\Modules\\Cart\\Interfaces\\ICartItem', $item);
 }