You are here

public function S3FileMapTest::testIsNew in Acquia Content Hub 8.2

@covers ::isNew

File

modules/acquia_contenthub_s3/tests/src/Kernel/S3FileMapTest.php, line 42

Class

S3FileMapTest
Tests the S3FileMap.

Namespace

Drupal\Tests\acquia_contenthub_s3\Kernel

Code

public function testIsNew() {
  $uuid = 'd2ded609-c7eb-4ca0-97cc-5bb0ddbbbf5a';
  $this
    ->assertTrue($this->s3FileMap
    ->isNew($uuid), 'Table does not contain the data.');
  $this->s3FileMap
    ->record($uuid, 'bucket', 'root_folder', '314d45d0-7b4b-4a46-860b-28f0258bb618');
  $this
    ->assertFalse($this->s3FileMap
    ->isNew($uuid), 'Table contains the data.');
}