public function UbercartQuoteTestCase::testNoQuote in Ubercart 7.3
Verifies shipping pane is hidden when there are no shippable items.
File
- shipping/
uc_quote/ tests/ uc_quote.test, line 137 - Ubercart Shipping Quote Tests.
Class
- UbercartQuoteTestCase
- SimpleTests for Ubercart Shipping Quotes.
Code
public function testNoQuote() {
$product = $this
->createProduct(array(
'shippable' => FALSE,
));
$quote = $this
->createQuote();
$this
->drupalPost('node/' . $product->nid, array(), t('Add to cart'));
$this
->drupalPost('cart', array(
'items[0][qty]' => 1,
), t('Checkout'));
$this
->assertNoText('Calculate shipping cost', 'Shipping pane is not present with no shippable item.');
}