You are here

private function VideoFieldTestCase::getFileUsage in Video 7.2

5 calls to VideoFieldTestCase::getFileUsage()
VideoFieldTestCase::testDeleteVideoFieldItem in tests/VideoField.test
Tests basic behavior for deleting a video from a node
VideoFieldTestCase::testDeleteVideoFieldItemTwice in tests/VideoField.test
Tests adding a video to two different nodes and deleting them one by one
VideoFieldTestCase::testDeleteVideoFieldItemTwice_EntityDelete in tests/VideoField.test
Tests adding a video to two different nodes and deleting the nodes
VideoFieldTestCase::testSaveVideoFieldItem in tests/VideoField.test
Tests basic behavior for saving a new video and adding it to a node.
VideoFieldTestCase::testSaveVideoFieldItemTwice in tests/VideoField.test
Tests saving a new video and adding it to two different nodes

File

tests/VideoField.test, line 406
Tests for the the Video field type

Class

VideoFieldTestCase
Tests for the the Video field type

Code

private function getFileUsage($fid) {
  return db_query('SELECT u.* FROM {file_usage} u WHERE u.fid = :fid', array(
    ':fid' => $fid,
  ))
    ->fetchAll();
}