From aee6c59fbd723338264f78f4718a109d2e8127b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Tue, 3 Jan 2023 12:07:11 +0100 Subject: [PATCH] Fix: Add test cases for suggest --- .../Suggest/HasEntries/No/normalized.json | 4 ++++ .../HasProperty/Suggest/HasEntries/No/original.json | 4 ++++ .../HasEntries/Yes/IsSortedByKey/No/normalized.json | 13 +++++++++++++ .../HasEntries/Yes/IsSortedByKey/No/original.json | 13 +++++++++++++ .../Yes/IsSortedByKey/Yes/normalized.json | 13 +++++++++++++ .../HasEntries/Yes/IsSortedByKey/Yes/original.json | 13 +++++++++++++ 6 files changed, 60 insertions(+) create mode 100644 test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Suggest/HasEntries/No/normalized.json create mode 100644 test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Suggest/HasEntries/No/original.json create mode 100644 test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Suggest/HasEntries/Yes/IsSortedByKey/No/normalized.json create mode 100644 test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Suggest/HasEntries/Yes/IsSortedByKey/No/original.json create mode 100644 test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Suggest/HasEntries/Yes/IsSortedByKey/Yes/normalized.json create mode 100644 test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Suggest/HasEntries/Yes/IsSortedByKey/Yes/original.json diff --git a/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Suggest/HasEntries/No/normalized.json b/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Suggest/HasEntries/No/normalized.json new file mode 100644 index 00000000..d3c84b1d --- /dev/null +++ b/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Suggest/HasEntries/No/normalized.json @@ -0,0 +1,4 @@ +{ + "homepage": "https://getcomposer.org/doc/04-schema.md#suggest", + "suggest": {} +} diff --git a/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Suggest/HasEntries/No/original.json b/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Suggest/HasEntries/No/original.json new file mode 100644 index 00000000..28ed9456 --- /dev/null +++ b/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Suggest/HasEntries/No/original.json @@ -0,0 +1,4 @@ +{ + "homepage": "https://getcomposer.org/doc/04-schema.md#suggest", + "suggest": {} +} diff --git a/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Suggest/HasEntries/Yes/IsSortedByKey/No/normalized.json b/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Suggest/HasEntries/Yes/IsSortedByKey/No/normalized.json new file mode 100644 index 00000000..ced72310 --- /dev/null +++ b/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Suggest/HasEntries/Yes/IsSortedByKey/No/normalized.json @@ -0,0 +1,13 @@ +{ + "homepage": "https://getcomposer.org/doc/04-schema.md#suggest", + "suggest": { + "php": "Nothing works without it", + "hhvm": "Okay", + "ext-foo": "Could be useful", + "lib-baz": "Maybe it helps.", + "composer-plugin-api": "Should be okay", + "acquia/drupal-environment-detector": "You might need it", + "ergebnis/php-cs-fixer-config": "Provides a configuration factory and multiple rule sets for friendsofphp/php-cs-fixer.", + "ergebnis/test-util": "Provides utilities for tests." + } +} diff --git a/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Suggest/HasEntries/Yes/IsSortedByKey/No/original.json b/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Suggest/HasEntries/Yes/IsSortedByKey/No/original.json new file mode 100644 index 00000000..74125be8 --- /dev/null +++ b/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Suggest/HasEntries/Yes/IsSortedByKey/No/original.json @@ -0,0 +1,13 @@ +{ + "homepage": "https://getcomposer.org/doc/04-schema.md#suggest", + "suggest": { + "ergebnis/test-util": "Provides utilities for tests.", + "hhvm": "Okay", + "lib-baz": "Maybe it helps.", + "ergebnis/php-cs-fixer-config": "Provides a configuration factory and multiple rule sets for friendsofphp/php-cs-fixer.", + "acquia/drupal-environment-detector": "You might need it", + "ext-foo": "Could be useful", + "composer-plugin-api": "Should be okay", + "php": "Nothing works without it" + } +} diff --git a/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Suggest/HasEntries/Yes/IsSortedByKey/Yes/normalized.json b/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Suggest/HasEntries/Yes/IsSortedByKey/Yes/normalized.json new file mode 100644 index 00000000..ced72310 --- /dev/null +++ b/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Suggest/HasEntries/Yes/IsSortedByKey/Yes/normalized.json @@ -0,0 +1,13 @@ +{ + "homepage": "https://getcomposer.org/doc/04-schema.md#suggest", + "suggest": { + "php": "Nothing works without it", + "hhvm": "Okay", + "ext-foo": "Could be useful", + "lib-baz": "Maybe it helps.", + "composer-plugin-api": "Should be okay", + "acquia/drupal-environment-detector": "You might need it", + "ergebnis/php-cs-fixer-config": "Provides a configuration factory and multiple rule sets for friendsofphp/php-cs-fixer.", + "ergebnis/test-util": "Provides utilities for tests." + } +} diff --git a/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Suggest/HasEntries/Yes/IsSortedByKey/Yes/original.json b/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Suggest/HasEntries/Yes/IsSortedByKey/Yes/original.json new file mode 100644 index 00000000..db64e45e --- /dev/null +++ b/test/Fixture/Vendor/Composer/ComposerJsonNormalizer/NormalizeNormalizesJson/Json/IsObject/HasEntries/Yes/HasProperty/Suggest/HasEntries/Yes/IsSortedByKey/Yes/original.json @@ -0,0 +1,13 @@ +{ + "homepage": "https://getcomposer.org/doc/04-schema.md#suggest", + "suggest": { + "php": "Nothing works without it", + "hhvm": "Okay", + "ext-foo": "Could be useful", + "lib-baz": "Maybe it helps.", + "composer-plugin-api": "Should be okay", + "acquia/drupal-environment-detector": "You might need it", + "ergebnis/php-cs-fixer-config": "Provides a configuration factory and multiple rule sets for friendsofphp/php-cs-fixer.", + "ergebnis/test-util": "Provides utilities for tests." + } +}