function MediaInternetTestHelper::getLastFileId in D7 Media 7.3
Same name and namespace in other branches
- 7.4 modules/media_internet/tests/media_internet.test \MediaInternetTestHelper::getLastFileId()
- 7.2 modules/media_internet/tests/media_internet.test \MediaInternetTestHelper::getLastFileId()
Retrieves the fid of the last inserted file.
6 calls to MediaInternetTestHelper::getLastFileId()
- MediaInternetProviderTestCase::testMediaInternetCustomProviderWizardBasic in modules/
media_internet/ tests/ media_internet.test - Test the basic file upload wizard functionality.
- MediaInternetProviderTestCase::testMediaInternetCustomProviderWizardFields in modules/
media_internet/ tests/ media_internet.test - Test the file upload wizard field step.
- MediaInternetProviderTestCase::testMediaInternetCustomProviderWizardSchemes in modules/
media_internet/ tests/ media_internet.test - Test the file upload wizard scheme step.
- MediaInternetProviderTestCase::testMediaInternetCustomProviderWizardStepSkipping in modules/
media_internet/ tests/ media_internet.test - Test skipping each of the file upload wizard steps.
- MediaInternetProviderTestCase::testMediaInternetCustomProviderWizardTypes in modules/
media_internet/ tests/ media_internet.test - Test the file upload wizard type step.
File
- modules/
media_internet/ tests/ media_internet.test, line 40 - Tests for media_internet.module.
Class
- MediaInternetTestHelper
- Provides methods specifically for testing Media Internet module's remote media handling.
Code
function getLastFileId() {
return (int) db_query('SELECT MAX(fid) FROM {file_managed}')
->fetchField();
}