Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / file / src / Tests / FileFieldFormatterAccessTest.php
diff --git a/web/core/modules/file/src/Tests/FileFieldFormatterAccessTest.php b/web/core/modules/file/src/Tests/FileFieldFormatterAccessTest.php
deleted file mode 100644 (file)
index 68bb047..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-
-namespace Drupal\file\Tests;
-
-/**
- * Tests file formatter access.
- * @group file
- */
-class FileFieldFormatterAccessTest extends FileFieldTestBase {
-
-  /**
-   * Modules to enable.
-   *
-   * @var array
-   */
-  public static $modules = ['node', 'file', 'field_ui', 'file_test'];
-
-  /**
-   * Tests the custom access handler is invoked.
-   */
-  public function testFileAccessHandler() {
-    $type_name = 'article';
-    $field_name = strtolower($this->randomMachineName());
-    $this->createFileField($field_name, 'node', $type_name);
-    \Drupal::state()->set('file_test_alternate_access_handler', TRUE);
-    \Drupal::entityManager()->clearCachedDefinitions();
-    $test_file = $this->getTestFile('text');
-    $nid = $this->uploadNodeFile($test_file, $field_name, $type_name);
-    $this->drupalGet('node/' . $nid);
-    $this->assertTrue(\Drupal::state()->get('file_access_formatter_check', FALSE));
-  }
-
-}