Commit 4a8ad852 authored by Ra Mänd's avatar Ra Mänd
Browse files

Remove arguments which can be safely dropped, as they are identical to the default value.

parent c0248b4a
......@@ -234,7 +234,7 @@ function field_collection_update_7002() {
->condition('archived', 0);
$select->leftJoin('field_data_' . $field_name, 'field', "field.{$field_name}_value = fci.item_id ");
$select->isNull('field.entity_id');
$ids = $select->execute()->fetchCol(0);
$ids = $select->execute()->fetchCol();
entity_delete_multiple('field_collection_item', $ids);
drupal_set_message(t('Deleted @count orphaned field collection items.', array('@count' => count($ids))));
......
......@@ -153,7 +153,7 @@ class FieldCollectionBasicTestCase extends DrupalWebTestCase {
$this->clearHookMessages();
node_delete($node->nid);
$this->assertNoHookMessage('entity_crud_hook_test_entity_presave called for type node');
$this->assertTrue(entity_load('field_collection_item', FALSE) === array(), 'Field collections are deleted when the host is deleted.');
$this->assertTrue(entity_load('field_collection_item') === array(), 'Field collections are deleted when the host is deleted.');
// Try deleting nodes with collections without any values.
$node = $this->drupalCreateNode(array('type' => 'article'));
......@@ -737,7 +737,7 @@ class FieldCollectionEntityTranslationTestCase extends DrupalWebTestCase {
// Make sure we are not using a stale list.
drupal_static_reset('language_list');
$languages = language_list('language');
$languages = language_list();
$this->assertTrue(array_key_exists($langcode, $languages), t('Language was installed successfully.'));
if (array_key_exists($langcode, $languages)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment