You are here

function ExifFunctionalTestCase::getLastFileId in Exif 7

Get the fid of the last inserted file.

1 call to ExifFunctionalTestCase::getLastFileId()
ExifFunctionalTestCase::testCreatePhotoNodeWithImage in ./exif_functionaltests.php

File

./exif_functionaltests.php, line 68

Class

ExifFunctionalTestCase

Code

function getLastFileId() {
  return (int) db_query('SELECT MAX(fid) FROM {file_managed}')
    ->fetchField();
}