summaryrefslogtreecommitdiff
path: root/modules/field/field.test
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-02-10 03:16:15 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-02-10 03:16:15 +0000
commit069597eaf3e750ffae2c0f8db1d2f9d4407029a7 (patch)
tree71020027686641bbaefada8a71504c0d3b217e2e /modules/field/field.test
parent4ce3ff3d44b7b6c508bd2b855a93873d35c8673b (diff)
downloadbrdo-069597eaf3e750ffae2c0f8db1d2f9d4407029a7.tar.gz
brdo-069597eaf3e750ffae2c0f8db1d2f9d4407029a7.tar.bz2
#369562 by yched: More Field API clean-ups.
Diffstat (limited to 'modules/field/field.test')
-rw-r--r--modules/field/field.test14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/field/field.test b/modules/field/field.test
index 87a4b74f8..01efcecd4 100644
--- a/modules/field/field.test
+++ b/modules/field/field.test
@@ -150,7 +150,7 @@ class FieldAttachTestCase extends DrupalWebTestCase {
// We make sure each value is stored correctly, then unset it.
// When an entire revision's values are unset (remembering that we
// put one extra value in $values per revision), unset the entire
- // revision. Then, if $rev_values is empty at the end, all
+ // revision. Then, if $rev_values is empty at the end, all
// revision data was found.
$results = db_select($this->revision_table, 't')->fields('t')->execute();
foreach ($results as $row) {
@@ -180,7 +180,7 @@ class FieldAttachTestCase extends DrupalWebTestCase {
$this->assertEqual(count($rows), 0, t("Update with an empty field_name entry empties the field."));
}
- // Test insert and update with missing or invalid fields. For the
+ // Test insert and update with missing or invalid fields. For the
// most part, these tests pass by not crashing or causing exceptions.
function testFieldAttachSaveMissingData() {
$entity_type = 'test_entity';
@@ -203,13 +203,13 @@ class FieldAttachTestCase extends DrupalWebTestCase {
$count = db_result(db_query("SELECT COUNT(*) FROM {{$this->table}}"));
$this->assertEqual($count, 1, 'Field data saved');
- // Update: Field is missing. Data should survive.
+ // Update: Field is missing. Data should survive.
unset($entity->{$this->field_name});
field_attach_update($entity_type, $entity);
$count = db_result(db_query("SELECT COUNT(*) FROM {{$this->table}}"));
$this->assertEqual($count, 1, 'Missing field leaves data in table');
- // Update: Field is NULL Data should be wiped.
+ // Update: Field is NULL. Data should be wiped.
$entity->{$this->field_name} = NULL;
field_attach_update($entity_type, $entity);
$count = db_result(db_query("SELECT COUNT(*) FROM {{$this->table}}"));
@@ -516,8 +516,8 @@ class FieldAttachTestCase extends DrupalWebTestCase {
}
// Verify that field_attach_validate() invokes the correct
- // hook_field_validate. NOTE: This tests the FAPI-connected
- // behavior of hook_field_validate. As discussed at
+ // hook_field_validate. NOTE: This tests the FAPI-connected
+ // behavior of hook_field_validate. As discussed at
// http://groups.drupal.org/node/18019, field validation will
// eventually be disconnected from FAPI, at which point this
// function will have to be rewritten.
@@ -550,7 +550,7 @@ class FieldAttachTestCase extends DrupalWebTestCase {
$this->assertEqual(count($errors), 0, 'No extraneous form errors set');
}
- // Validate that FAPI elements are generated. This could be much
+ // Validate that FAPI elements are generated. This could be much
// more thorough, but it does verify that the correct widgets show up.
function testFieldAttachForm() {
$entity_type = 'test_entity';