You are here

public function WishlistUserTest::testEmptyPage in Commerce Wishlist 8.3

Tests the behavior of wishlist pages when the wishlist is empty.

File

tests/src/FunctionalJavascript/WishlistUserTest.php, line 101

Class

WishlistUserTest
Tests the wishlist user pages.

Namespace

Drupal\Tests\commerce_wishlist\FunctionalJavascript

Code

public function testEmptyPage() {
  $this
    ->drupalGet(Url::fromRoute('commerce_wishlist.page'));
  $this
    ->assertSession()
    ->pageTextContains('Your wishlist is empty');
  $this
    ->drupalGet(Url::fromRoute('commerce_wishlist.user_page', [
    'user' => $this->adminUser
      ->id(),
  ]));
  $this
    ->assertSession()
    ->pageTextContains('Your wishlist is empty');
}