protected function S3FileMapTestTrait::fetchAllData in Acquia Content Hub 8.2
Returns every entry from S3FileMap table.
Return value
array Associative array, keyed by file_uuid.
Throws
\Exception
4 calls to S3FileMapTestTrait::fetchAllData()
- S3FileMapTest::testRecordDataValidity in modules/
acquia_contenthub_s3/ tests/ src/ Kernel/ S3FileMapTest.php - @covers ::record
- S3FileMapTest::testRecordUpdate in modules/
acquia_contenthub_s3/ tests/ src/ Kernel/ S3FileMapTest.php - @covers ::record
- S3FileMapTest::testRemove in modules/
acquia_contenthub_s3/ tests/ src/ Kernel/ S3FileMapTest.php - @covers ::remove
- S3FileOriginLocatorTest::testNoRecordLocally in modules/
acquia_contenthub_s3/ tests/ src/ Kernel/ S3FileOriginLocatorTest.php - @covers ::getS3FileSource
File
- modules/
acquia_contenthub_s3/ tests/ src/ Kernel/ S3FileMapTestTrait.php, line 31
Class
- S3FileMapTestTrait
- Provides helper methods for s3 file map table interactions.
Namespace
Drupal\Tests\acquia_contenthub_s3\KernelCode
protected function fetchAllData() : array {
return \Drupal::database()
->select(S3FileMap::TABLE_NAME, 'acs3')
->fields('acs3')
->execute()
->fetchAllAssoc('file_uuid', \PDO::FETCH_ASSOC);
}