You are here

function FileEntityTestHelper::getLastFileId in File Entity (fieldable files) 7.3

Same name and namespace in other branches
  1. 7.2 file_entity.test \FileEntityTestHelper::getLastFileId()

Retrieves the fid of the last inserted file.

6 calls to FileEntityTestHelper::getLastFileId()
FileEntityUploadWizardTestCase::testFileEntityUploadWizardBasic in ./file_entity.test
Test the basic file upload wizard functionality.
FileEntityUploadWizardTestCase::testFileEntityUploadWizardFields in ./file_entity.test
Test the file upload wizard field step.
FileEntityUploadWizardTestCase::testFileEntityUploadWizardSchemes in ./file_entity.test
Test the file upload wizard scheme step.
FileEntityUploadWizardTestCase::testFileEntityUploadWizardStepSkipping in ./file_entity.test
Test skipping each of the file upload wizard steps.
FileEntityUploadWizardTestCase::testFileEntityUploadWizardTypes in ./file_entity.test
Test the file upload wizard type step.

... See full list

File

./file_entity.test, line 34
Test integration for the file_entity module.

Class

FileEntityTestHelper
@file Test integration for the file_entity module.

Code

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