function FileFieldTestCase::getLastFileId
Retrieves the fid of the last inserted file.
2 calls to FileFieldTestCase::getLastFileId()
- FileManagedFileElementTestCase::testManagedFile in drupal-7.x/
modules/ file/ tests/ file.test - Tests the managed_file element type.
- FileManagedFileElementTestCase::testManagedFile in drupal-7.x/
modules/ file/ tests/ file.test - Tests the managed_file element type.
Archivo
- drupal-7.x/
modules/ file/ tests/ file.test, line 45 - Tests for file.module.
Class
- FileFieldTestCase
- Provides methods specifically for testing File module's field handling.
Código
function getLastFileId() {
return (int) db_query('SELECT MAX(fid) FROM {file_managed}')->fetchField();
}