You are here

public function FileDeletedTest::testBasicPull in Entity Share 8.2

Same name and namespace in other branches
  1. 8.3 modules/entity_share_client/tests/src/Functional/FileDeletedTest.php \Drupal\Tests\entity_share_client\Functional\FileDeletedTest::testBasicPull()

Test basic pull feature.

Overrides FileTest::testBasicPull

File

modules/entity_share_client/tests/src/Functional/FileDeletedTest.php, line 81

Class

FileDeletedTest
Test class for file field where the physical file had been deleted.

Namespace

Drupal\Tests\entity_share_client\Functional

Code

public function testBasicPull() {
  foreach (static::$filesData as $file_data) {
    $this
      ->assertFalse(file_exists($file_data['uri']), 'The physical file ' . $file_data['filename'] . ' has been deleted.');
  }
  $this
    ->pullEveryChannels();
  $this
    ->checkCreatedEntities();
  foreach (static::$filesData as $file_data) {
    $this
      ->assertFalse(file_exists($file_data['uri']), 'The physical file ' . $file_data['filename'] . ' has not been recreated.');
  }
}