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\FunctionalJavascriptCode
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');
}