updated ubercart contrib module

This commit is contained in:
2019-10-14 10:35:12 +02:00
parent 26fadc74e4
commit 4e780cb6d4
55 changed files with 181 additions and 161 deletions

View File

@@ -316,7 +316,7 @@ class UbercartAttributeTestCase extends UbercartTestHelper {
$edit = (array) self::createAttribute(array(), FALSE);
$this->drupalPost('admin/store/products/attributes/add', $edit, t('Submit'));
if ($edit['display'] !=0) {
if ($edit['display'] != 0) {
// We redirect to add options page ONLY for non-textfield attributes.
$this->assertText('Options for ' . $edit['name']);
$this->assertText('No options for this attribute have been added yet.');
@@ -650,7 +650,7 @@ class UbercartAttributeTestCase extends UbercartTestHelper {
$this->clickLink('Add an attribute');
$this->assertText($attribute->name);
$this->drupalPost(NULL, array('add_attributes[' . $attribute->aid. ']' => 1), t('Add attributes'));
$this->drupalPost(NULL, array('add_attributes[' . $attribute->aid . ']' => 1), t('Add attributes'));
$this->assertText('1 attribute has been added.');
$this->assertText($attribute->name, 'Attribute name found');
$this->assertFieldByName('attributes[' . $attribute->aid . '][label]', $attribute->label, 'Attribute label found');
@@ -662,7 +662,7 @@ class UbercartAttributeTestCase extends UbercartTestHelper {
$this->assertNoText($attribute->name);
$this->assertText('No attributes left to add.');
$edit = array('attributes[' . $attribute->aid. '][remove]' => 1);
$edit = array('attributes[' . $attribute->aid . '][remove]' => 1);
$this->drupalPost('node/' . $product->nid . '/edit/attributes', $edit, t('Save changes'));
$this->assertText('You must first add attributes to this product.');
}

View File

@@ -8,8 +8,8 @@ core = 7.x
files[] = tests/uc_attribute.test
files[] = tests/uc_attribute_checkout.test
; Information added by Drupal.org packaging script on 2019-03-06
version = "7.x-3.12"
; Information added by Drupal.org packaging script on 2019-10-01
version = "7.x-3.13"
core = "7.x"
project = "ubercart"
datestamp = "1551862392"
datestamp = "1569942207"