/** * 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()); }
/** * 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()); }