You are here

public function QuoteTest::testNoQuote in Ubercart 8.4

Verifies shipping pane is hidden when there are no shippable items.

File

shipping/uc_quote/src/Tests/QuoteTest.php, line 149

Class

QuoteTest
Tests shipping quote functionality.

Namespace

Drupal\uc_quote\Tests

Code

public function testNoQuote() {
  $product = $this
    ->createProduct([
    'shippable' => 0,
  ]);
  $quote = $this
    ->createQuote();
  $this
    ->addToCart($product);
  $this
    ->drupalPostForm('cart', [
    'items[0][qty]' => 1,
  ], t('Checkout'));
  $this
    ->assertNoText(t('Calculate shipping cost'), 'Shipping pane is not present with no shippable item.');
}