예제 #1
0
파일: CartTest.php 프로젝트: aiesh/magento2
 /**
  * Verify the basic content of an empty cart.
  *
  * @magentoDataFixture Magento/Customer/_files/customer.php
  */
 public function testToHtmlEmptyCart()
 {
     $this->assertEquals(0, $this->block->getCollection()->getSize());
     $this->assertContains("There are no items in customer's shopping cart at the moment", $this->block->toHtml());
 }
예제 #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());
 }