3 namespace Drupal\Tests\field_ui\Functional;
5 use Drupal\Tests\BrowserTestBase;
8 * Tests the Manage Display page of a fieldable entity type.
12 class ManageFieldsTest extends BrowserTestBase {
17 public static $modules = [
27 protected function setUp() {
29 $account = $this->drupalCreateUser(['administer node fields']);
30 $this->drupalLogin($account);
31 $this->config('system.logging')
32 ->set('error_level', ERROR_REPORTING_DISPLAY_ALL)
36 public function testFieldDropButtonOperations() {
37 $node_type = $this->drupalCreateContentType();
39 /** @var \Drupal\field\FieldStorageConfigInterface $storage */
40 $storage = $this->container->get('entity_type.manager')
41 ->getStorage('field_storage_config')
44 'field_name' => 'highlander',
45 'entity_type' => 'node',
49 $this->container->get('entity_type.manager')
50 ->getStorage('field_config')
52 'field_storage' => $storage,
53 'bundle' => $node_type->id(),
57 $this->drupalGet('/admin/structure/types/manage/' . $node_type->id() . '/fields');