96 calls to Json::decode() in Drupal 9
- AssertContentTrait::setRawContent in core/
tests/ Drupal/ KernelTests/ AssertContentTrait.php - Sets the raw content (e.g. HTML).
- AttachedAssetsTest::testSettings in core/
tests/ Drupal/ KernelTests/ Core/ Asset/ AttachedAssetsTest.php - Tests JavaScript settings.
- BasicTest::testViewsWizardAndListing in core/
modules/ views/ tests/ src/ Functional/ Wizard/ BasicTest.php - BrowserTestBase::getDrupalSettings in core/
tests/ Drupal/ Tests/ BrowserTestBase.php - Gets the JavaScript drupalSettings variable for the currently-loaded page.
- BrowserTestBaseTest::testForm in core/
tests/ Drupal/ FunctionalTests/ BrowserTestBaseTest.php - Tests basic form functionality.
- CommentNewIndicatorTest::testCommentNewCommentsIndicator in core/
modules/ comment/ tests/ src/ Functional/ CommentNewIndicatorTest.php - Tests new comment marker.
- CommentRestExportTest::testCommentRestExport in core/
modules/ comment/ tests/ src/ Functional/ Views/ CommentRestExportTest.php - Tests comment row.
- CommentTest::testCollectionFilterAccess in core/
modules/ jsonapi/ tests/ src/ Functional/ CommentTest.php - CommonCollectionFilterAccessTestPatternsTrait::doTestCollectionFilterAccessBasedOnPermissions in core/
modules/ jsonapi/ tests/ src/ Traits/ CommonCollectionFilterAccessTestPatternsTrait.php - Implements ::testCollectionFilterAccess() for pure permission-based access.
- CommonCollectionFilterAccessTestPatternsTrait::doTestCollectionFilterAccessForPublishableEntities in core/
modules/ jsonapi/ tests/ src/ Traits/ CommonCollectionFilterAccessTestPatternsTrait.php - Implements ::testCollectionFilterAccess() for permission + status access.
- ConfigurableLanguageTest::testGetIndividualDefaultConfig in core/
modules/ jsonapi/ tests/ src/ Functional/ ConfigurableLanguageTest.php - Tests a GET request for a default config entity, which has a _core key.
- ContextualDynamicContextTest::testDifferentPermissions in core/
modules/ contextual/ tests/ src/ Functional/ ContextualDynamicContextTest.php - Tests contextual links with different permissions.
- contextual_contextual_links_view_alter in core/
modules/ contextual/ contextual.module - Implements hook_contextual_links_view_alter().
- DbLogResourceTest::testWatchdog in core/
modules/ dblog/ tests/ src/ Functional/ DbLogResourceTest.php - Writes a log messages and retrieves it via the REST API.
- DisplayBlockTest::testBlockContextualLinks in core/
modules/ block/ tests/ src/ Functional/ Views/ DisplayBlockTest.php - Tests the contextual links on a Views block.
- EditorIntegrationLoadingTest::testUsersWithoutPermission in core/
modules/ quickedit/ tests/ src/ Functional/ EditorIntegrationLoadingTest.php - Tests loading of untransformed text when a user doesn't have access to it.
- EditorIntegrationLoadingTest::testUserWithPermission in core/
modules/ quickedit/ tests/ src/ Functional/ EditorIntegrationLoadingTest.php - Tests loading of untransformed text when a user does have access to it.
- EditorSecurityTest::testSwitchingSecurity in core/
modules/ editor/ tests/ src/ Functional/ EditorSecurityTest.php - Tests administrator security: is the user safe when switching text formats?
- ElementsVerticalTabsTest::testDefaultTabCleaned in core/
modules/ system/ tests/ src/ Functional/ Form/ ElementsVerticalTabsTest.php - Ensures that vertical tab form values are cleaned.
- EmailTest::testFormEmail in core/
modules/ system/ tests/ src/ Functional/ Form/ EmailTest.php - Tests that #type 'email' fields are properly validated.
- EntityAutocompleteTest::getAutocompleteResult in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityAutocompleteTest.php - Returns the result of an Entity reference autocomplete request.
- EntityResource::createIndividual in core/
modules/ jsonapi/ src/ Controller/ EntityResource.php - Creates an individual entity.
- EntityResource::patchIndividual in core/
modules/ jsonapi/ src/ Controller/ EntityResource.php - Patches an individual entity.
- EntryPointTest::testEntryPoint in core/
modules/ jsonapi/ tests/ src/ Functional/ EntryPointTest.php - Test GET to the entry point.
- ExternalNormalizersTest::testFormatAgnosticNormalizers in core/
modules/ jsonapi/ tests/ src/ Functional/ ExternalNormalizersTest.php - Tests a format-agnostic normalizer.
- FieldUITest::testFieldUI in core/
modules/ views_ui/ tests/ src/ Functional/ FieldUITest.php - Tests the UI of field handlers.
- FileFieldWidgetTest::testWidgetElement in core/
modules/ file/ tests/ src/ Functional/ FileFieldWidgetTest.php - Tests file widget element.
- FileTest::testCollectionFilterAccess in core/
modules/ jsonapi/ tests/ src/ Functional/ FileTest.php - FileUploadTest::assertResponseData in core/
modules/ jsonapi/ tests/ src/ Functional/ FileUploadTest.php - Asserts expected normalized data matches response data.
- FormTest::testCheckboxProcessing in core/
modules/ system/ tests/ src/ Functional/ Form/ FormTest.php - Tests default value handling for checkboxes.
- FormTest::testDisabledElements in core/
modules/ system/ tests/ src/ Functional/ Form/ FormTest.php - Tests handling of disabled elements.
- FormTest::testSelect in core/
modules/ system/ tests/ src/ Functional/ Form/ FormTest.php - Tests validation of #type 'select' elements.
- FrameworkTest::drupalGetAjax in core/
modules/ system/ tests/ src/ Functional/ Ajax/ FrameworkTest.php - Requests a path or URL in drupal_ajax format and JSON-decodes the response.
- HistoryTest::testHistory in core/
modules/ history/ tests/ src/ Functional/ HistoryTest.php - Verifies that the history endpoints work.
- InternalEntitiesTest::jsonapiGet in core/
modules/ jsonapi/ tests/ src/ Functional/ InternalEntitiesTest.php - Performs an authenticated request and returns the decoded document.
- JsonApiFunctionalMultilingualTest::testDeleteMultilingual in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiFunctionalMultilingualTest.php - Tests deleting multilingual content.
- JsonApiFunctionalMultilingualTest::testPatchTranslation in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiFunctionalMultilingualTest.php - Tests updating a translation.
- JsonApiFunctionalMultilingualTest::testPatchTranslationFallback in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiFunctionalMultilingualTest.php - Tests updating a translation fallback.
- JsonApiFunctionalMultilingualTest::testPostTranslation in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiFunctionalMultilingualTest.php - Tests creating a translation.
- JsonApiFunctionalMultilingualTest::testReadMultilingual in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiFunctionalMultilingualTest.php - Tests reading multilingual content.
- JsonApiFunctionalTest::testRead in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiFunctionalTest.php - Tests the GET method.
- JsonApiFunctionalTest::testReferencingTwiceRead in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiFunctionalTest.php - Tests the GET method on articles referencing the same tag twice.
- JsonApiFunctionalTest::testWrite in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiFunctionalTest.php - Tests POST, PATCH and DELETE.
- JsonApiRegressionTest::testEmptyMapFieldTypeDenormalization in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiRegressionTest.php - Ensure optional `@FieldType=map` fields are denormalized correctly.
- JsonApiRegressionTest::testFilterByIdFromIssue3015759 in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiRegressionTest.php - Ensures that filtering by a sequential internal ID named 'id' is possible.
- JsonApiRegressionTest::testFilteringEntitiesByEntityReferenceTargetId in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiRegressionTest.php - Tests that collections can be filtered by an entity reference target_id.
- JsonApiRegressionTest::testLeakCacheMetadataInOmitted in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiRegressionTest.php - Ensure EntityAccessDeniedHttpException cacheability is taken into account.
- JsonApiRegressionTest::testMapFieldTypeNormalizationFromIssue3040590 in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiRegressionTest.php - Ensure `@FieldType=map` fields are normalized correctly.
- JsonApiRegressionTest::testNonTranslatableEntityUpdatesFromIssue3043168 in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiRegressionTest.php - Ensure non-translatable entities can be PATCHed with an alternate language.
- JsonApiRegressionTest::testPatchingDateTimeFieldsFromIssue3021194 in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiRegressionTest.php - Ensures PATCHing datetime (both date-only & date+time) fields is possible.
- JsonApiRegressionTest::testPatchingDateTimeNormalizedWrongTimeZoneIssue3021194 in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiRegressionTest.php - Ensures datetime fields are normalized using the correct timezone.
- JsonApiRegressionTest::testPatchToIncludeUrlDoesNotReturnIncludeFromIssue3026030 in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiRegressionTest.php - Ensure includes are respected even when PATCHing.
- JsonApiRegressionTest::testPostToIncludeUrlDoesNotReturnIncludeFromIssue3026030 in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiRegressionTest.php - Ensure includes are respected even when POSTing.
- JsonApiRegressionTest::testRecursionDetectedWhenResponseContainsViolationsFrom3042124 in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiRegressionTest.php - Tests that the response still has meaningful error messages.
- JsonTest::testReversibility in core/
tests/ Drupal/ Tests/ Component/ Serialization/ JsonTest.php - Tests converting PHP variables to JSON strings and back.
- JsonTest::testStructuredReversibility in core/
tests/ Drupal/ Tests/ Component/ Serialization/ JsonTest.php - Tests the reversibility of structured data.
- LanguageSelectElementTest::testHiddenLanguageSelectElement in core/
modules/ system/ tests/ src/ Functional/ Form/ LanguageSelectElementTest.php - Tests the case when the language select elements should not be printed.
- media_library_filter_format_edit_form_validate in core/
modules/ media_library/ media_library.module - Validate callback to ensure the DrupalMediaLibrary button can work correctly.
- MenuLinkContentTest::testLinkOptionsSerialization in core/
modules/ jsonapi/ tests/ src/ Functional/ MenuLinkContentTest.php - Tests requests using a serialized field item property.
- NodeActionsConfigurationTest::testAssignOwnerNodeActionAutocomplete in core/
modules/ node/ tests/ src/ Functional/ NodeActionsConfigurationTest.php - Tests the autocomplete field when configuring the AssignOwnerNode action.
- NodeRevisionsTest::renderContextualLinks in core/
modules/ node/ tests/ src/ Functional/ NodeRevisionsTest.php - Gets server-rendered contextual links for the given contextual links IDs.
- NodeTest::testCollectionFilterAccess in core/
modules/ jsonapi/ tests/ src/ Functional/ NodeTest.php - NodeTest::testPatchPath in core/
modules/ jsonapi/ tests/ src/ Functional/ NodeTest.php - Tests PATCHing a node's path with and without 'create url aliases'.
- OEmbedTestTrait::hijackProviderEndpoints in core/
modules/ media/ tests/ src/ Traits/ OEmbedTestTrait.php - Ensures that all oEmbed provider endpoints defined in the fixture providers.json will use the media_test_oembed.resource.get route as their URL.
- OffCanvasDialogTest::testDialog in core/
modules/ system/ tests/ src/ Functional/ Ajax/ OffCanvasDialogTest.php - Tests sending AJAX requests to open and manipulate off-canvas dialog.
- ProviderRepository::getAll in core/
modules/ media/ src/ OEmbed/ ProviderRepository.php - Returns information on all available oEmbed providers.
- QuickEditCustomPipelineTest::testCustomPipeline in core/
modules/ quickedit/ tests/ src/ Functional/ QuickEditCustomPipelineTest.php - Tests that Quick Edit works with custom render pipelines.
- QuickEditEndPointAccessTest::assertAccessIsBlocked in core/
modules/ quickedit/ tests/ src/ Functional/ QuickEditEndPointAccessTest.php - Asserts that access to the passed URL is blocked.
- QuickEditImageControllerTest::testFieldInfo in core/
modules/ quickedit/ tests/ src/ Functional/ QuickEditImageControllerTest.php - Tests that the field info route returns expected data.
- RenderWebTest::testWrapperFormatCacheContext in core/
modules/ system/ tests/ src/ Functional/ Common/ RenderWebTest.php - Asserts the cache context for the wrapper format is always present.
- ResourceFetcher::fetchResource in core/
modules/ media/ src/ OEmbed/ ResourceFetcher.php - Fetches an oEmbed resource.
- ResourceFetcher::parseResourceXml in core/
modules/ media/ src/ OEmbed/ ResourceFetcher.php - Parses XML resource data.
- ResourceResponseTestTrait::toResourceResponse in core/
modules/ jsonapi/ tests/ src/ Functional/ ResourceResponseTestTrait.php - Maps a response object to a JSON:API ResourceResponse.
- ResourceTestBase::assertResourceResponse in core/
modules/ jsonapi/ tests/ src/ Functional/ ResourceTestBase.php - Asserts that a resource response has the given status code and body.
- ResourceTestBase::doTestRelationshipMutation in core/
modules/ jsonapi/ tests/ src/ Functional/ ResourceTestBase.php - Performs one round of relationship POST, PATCH and DELETE route testing.
- ResourceTestBase::testPatchIndividual in core/
modules/ jsonapi/ tests/ src/ Functional/ ResourceTestBase.php - Tests PATCHing an individual resource, plus edge cases to ensure good DX.
- ResourceTestBase::testPostIndividual in core/
modules/ jsonapi/ tests/ src/ Functional/ ResourceTestBase.php - Tests POSTing an individual resource, plus edge cases to ensure good DX.
- ResponseTest::testFormResponse in core/
modules/ system/ tests/ src/ Functional/ Form/ ResponseTest.php - Tests that enforced responses propagate through subscribers and middleware.
- SecurityAdvisoriesFetcher::getSecurityAdvisories in core/
modules/ system/ src/ SecurityAdvisories/ SecurityAdvisoriesFetcher.php - Gets security advisories that are applicable for the current site.
- SelectionTest::testAutocompleteOutput in core/
modules/ field/ tests/ src/ Functional/ EntityReference/ Views/ SelectionTest.php - Tests that the Views selection handles the views output properly.
- ShortcutTest::testCollectionFilterAccess in core/
modules/ jsonapi/ tests/ src/ Functional/ ShortcutTest.php - StateValuesCleanTest::testFormStateValuesClean in core/
modules/ system/ tests/ src/ Functional/ Form/ StateValuesCleanTest.php - Tests \Drupal\Core\Form\FormState::cleanValues().
- StyleSerializerTest::testFieldapiField in core/
modules/ rest/ tests/ src/ Functional/ Views/ StyleSerializerTest.php - Tests the field row style using fieldapi fields.
- StyleSerializerTest::testFieldRawOutput in core/
modules/ rest/ tests/ src/ Functional/ Views/ StyleSerializerTest.php - Tests the raw output options for row field rendering.
- StyleSerializerTest::testRestRenderCaching in core/
modules/ rest/ tests/ src/ Functional/ Views/ StyleSerializerTest.php - Tests REST export with views render caching enabled.
- StyleSerializerTest::testRestViewExposedFilter in core/
modules/ rest/ tests/ src/ Functional/ Views/ StyleSerializerTest.php - Tests the exposed filter works.
- StyleSerializerTest::testUIFieldAlias in core/
modules/ rest/ tests/ src/ Functional/ Views/ StyleSerializerTest.php - Tests the field ID alias functionality of the DataFieldRow plugin.
- TermAutocompleteTest::drupalGetJson in core/
modules/ taxonomy/ tests/ src/ Functional/ TermAutocompleteTest.php - Helper function for JSON formatted requests.
- TermTest::testGetIndividualTermWithParent in core/
modules/ jsonapi/ tests/ src/ Functional/ TermTest.php - Tests GETting a term with a parent term other than the default <root> (0).
- TermTest::testPatchPath in core/
modules/ jsonapi/ tests/ src/ Functional/ TermTest.php - Tests PATCHing a term's path.
- ThemeTest::testThemeOnNonHtmlRequest in core/
modules/ system/ tests/ src/ Functional/ Theme/ ThemeTest.php - Ensures that non-HTML requests never initialize themes.
- UrlTest::testFormUrl in core/
modules/ system/ tests/ src/ Functional/ Form/ UrlTest.php - Tests that #type 'url' fields are properly validated and trimmed.
- UserTest::testCollectionContainsAnonymousUser in core/
modules/ jsonapi/ tests/ src/ Functional/ UserTest.php - Tests that the collection contains the anonymous user.
- UserTest::testCollectionFilterAccess in core/
modules/ jsonapi/ tests/ src/ Functional/ UserTest.php - UserTest::testGetMailFieldOnlyVisibleToOwner in core/
modules/ jsonapi/ tests/ src/ Functional/ UserTest.php - Tests GETting privacy-sensitive base fields.
- UserTest::testPatchDxForSecuritySensitiveBaseFields in core/
modules/ jsonapi/ tests/ src/ Functional/ UserTest.php - Tests PATCHing security-sensitive base fields of the logged in account.