function UbercartCartLinksTestCase::setCartLinksUIRedirect in Ubercart 6.2
Same name and namespace in other branches
- 7.3 uc_cart_links/tests/uc_cart_links.test \UbercartCartLinksTestCase::setCartLinksUIRedirect()
Sets redirect destination page for invalid cart links.
Must be logged in with 'administer cart links' permission.
Parameters
$url: Relative URL of the destination page for the redirect. Omit leading '/'.
1 call to UbercartCartLinksTestCase::setCartLinksUIRedirect()
- UbercartCartLinksTestCase::testCartLinksRestrictions in uc_cart_links/
uc_cart_links.test - Tests cart links on a page under a variety of conditions.
File
- uc_cart_links/
uc_cart_links.test, line 677 - Ubercart Cart Links Tests.
Class
- UbercartCartLinksTestCase
- SimpleTests for Ubercart Cart Links.
Code
function setCartLinksUIRedirect($url = '') {
$this
->drupalPost('admin/store/settings/cart_links', array(
'uc_cart_links_invalid_page' => $url,
), t('Save configuration'));
$this
->assertFieldByName('uc_cart_links_invalid_page', $url, t('Cart links invalid page URL contains "@url".', array(
'@url' => $url,
)));
}