Révision b4adf10d
Ajouté par Assos Assos il y a plus de 9 ans
drupal7/modules/field/tests/field_test.module | ||
---|---|---|
267 | 267 |
// exception if the EFQ does not properly prefix the base table. |
268 | 268 |
$query->join('test_entity','te2','%alias.ftid = test_entity.ftid'); |
269 | 269 |
} |
270 |
|
|
271 |
/** |
|
272 |
* Implements hook_query_TAG_alter() for tag 'store_global_test_query'. |
|
273 |
*/ |
|
274 |
function field_test_query_store_global_test_query_alter($query) { |
|
275 |
// Save the query in a global variable so that it can be examined by tests. |
|
276 |
// This can be used by any test which needs to check a query, but see |
|
277 |
// FieldSqlStorageTestCase::testFieldSqlStorageMultipleConditionsSameColumn() |
|
278 |
// for an example. |
|
279 |
$GLOBALS['test_query'] = $query; |
|
280 |
} |
Formats disponibles : Unified diff
Udpate to 7.33