示例#1
0
 /**
  * Verify the Html content for a single item in the customer's cart.
  *
  * @magentoDataFixture Magento/Customer/_files/customer.php
  * @magentoDataFixture Magento/Customer/_files/quote.php
  */
 public function testToHtmlCartItem()
 {
     $html = $this->block->toHtml();
     $this->assertContains('Simple Product', $html);
     $this->assertContains('simple', $html);
     $this->assertContains('$10.00', $html);
     $this->assertContains('catalog/product/edit/id/1', $html);
 }
示例#2
0
 /**
  * Verify that the customer has a single item in his cart.
  *
  * @magentoDataFixture Magento/Customer/_files/customer.php
  * @magentoDataFixture Magento/Customer/_files/quote.php
  */
 public function testGetCollection()
 {
     $this->assertEquals(1, $this->block->getCollection()->getSize());
 }