From 5b958eb2d3865fa921185890bfeb53d3489419ef Mon Sep 17 00:00:00 2001 From: homura163 Date: Thu, 28 Nov 2024 10:17:09 -0500 Subject: [PATCH] remove unneeded test --- .DS_Store | Bin 8196 -> 8196 bytes tests/.DS_Store | Bin 6148 -> 6148 bytes .../JSONFieldProcessorConfigReferenceTest.php | 105 ------------------ 3 files changed, 105 deletions(-) delete mode 100644 tests/src/Functional/JSONFieldProcessorConfigReferenceTest.php diff --git a/.DS_Store b/.DS_Store index 4f706055e2779a7cf84588f6b7aaa5b18d7d0486..63c8967ca0f35bb9072346071c2af96df17993d0 100644 GIT binary patch delta 47 zcmZp1XmQxEK!|b26%QJ4S66xXw0NLIO)&Kwi diff --git a/tests/.DS_Store b/tests/.DS_Store index 3ba280fa6cf1761f0a091f433c4b0194f65be346..d0f3b7ab7b96732eb32d686893e556702373c28c 100644 GIT binary patch delta 318 zcmZoMXfc=|#>B)qF;Q%yo}wrl0|Nsi1A_oVaY0f}eiD$kBdK6BBja+$dXN+|Loq`U zLvm6%vUE;nafyM!HAW_87FITP4t5T1j@aOg{PN(E#FEltr^KRY5HBP@KPL&sPD~2R zOf8QW5OL1WD@n}EODzIx$V^EEDv1ft%uC5Hcgio#ODP8H4F*aC0A)BhIXL45B&w^8 z%nWoCj14Smbrh;Cjeu+uGn3j{P7YCJee0n3?3~=Z{4St#fq)U{8!+I7(lDxfVo$L! z)IVjxMR_^-dFenoMv!M&HnVf^a{xmH$obAZnP0?E0Ax%9NFIzB7&ZrpY+(ifL-kH? delta 78 zcmZoMXfc=|#>CJ*u~2NHo+3XB0|Nsi1A_pAVQ_MOZo$MtT}GD4x0s4Ir!p^M*<8S! i#assertSession(); - - // Create a new content type for testing. - $type = $this->createContentType(); - - // Log in as a user with permissions to create content and administer fields. - $this->drupalLogin($this->createUser([ - 'create ' . $type->id() . ' content', - 'administer node fields', - ])); - - // Go to the "manage fields" section of a content entity. - $this->drupalGet('admin/structure/types/manage/' . $type->id() . '/fields'); - $assert->statusCodeEquals(200); - - // Click on the "add field" button. - $this->clickLink('Create a new field'); - - // Select "Reference" as the field type and choose "other". - // Add a label and click continue. - $this->submitForm([ - 'new_storage_type' => 'reference', - ], 'Continue'); - $this->submitForm([ - 'entity_reference' => 'entity_reference', - 'label' => 'json_field_processor_config Reference', - ], 'Continue'); - // Get the current page HTML. - $html = $this->getSession()->getPage()->getHtml(); - - // Print the page HTML to debug what is rendered. - print('
' . htmlspecialchars($html) . '
'); - $this->submitForm([ - 'settings-handler-settings-target-bundles-islandora-object' => $type->id(), - ], "Save settings"); - - $assert->statusCodeEquals(200); - - // Select "json_field_processor_config" as the target type. - $this->submitForm([ - 'settings[target_type]' => 'json_field_processor_config', - ], 'Save field settings'); - $assert->statusCodeEquals(200); - - // Load a json_field_processor_config entity to reference. - $json_field_processor_config = JSONFieldProcessorConfig::loadMultiple(); - // Get the first available config entity. - $json_field_processor_config = reset($json_field_processor_config); - - // Create a new node of the created content type. - $this->drupalGet(Url::fromRoute('node.add', ['node_type' => $type->id()])); - $this->submitForm([ - 'title[0][value]' => 'Test Node Title', - 'field_json_field_processor_config_reference[0][target_id]' => $json_field_processor_config->id(), - // Ensure this button is correctly targeted. - ], 'Save'); - $assert->statusCodeEquals(200); - - // Verify that the json_field_processor_config label is present in the node. - $assert->pageTextContains($json_field_processor_config->label()); - } - -}