From f9d9f4e14c0a974b0e4b7704640c68f8e4838e06 Mon Sep 17 00:00:00 2001 From: ADmad Date: Sun, 26 Jun 2022 01:55:18 +0530 Subject: [PATCH 1/3] Update CI config --- .github/workflows/ci.yml | 12 ++++++------ composer.json | 3 --- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7522acc7..af8b1707 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: POSTGRES_PASSWORD: postgres steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -60,14 +60,14 @@ jobs: - name: Code Coverage Report if: matrix.php-version == '7.4' - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v3 cs-stan: name: Coding Standard & Static Analysis runs-on: ubuntu-18.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -75,7 +75,7 @@ jobs: php-version: '7.4' extensions: mbstring, intl coverage: none - tools: cs2pr, vimeo/psalm:4.21, phpstan:1.4 + tools: cs2pr, vimeo/psalm:4.23, phpstan:1.7 - name: Composer Install run: composer install @@ -84,9 +84,9 @@ jobs: run: vendor/bin/phpcs --report=checkstyle src/ tests/ | cs2pr - name: Run psalm - if: success() || failure() + if: always() run: psalm --output-format=github - name: Run phpstan - if: success() || failure() + if: always() run: phpstan analyse diff --git a/composer.json b/composer.json index 02c99eca..47f1a9d3 100644 --- a/composer.json +++ b/composer.json @@ -46,9 +46,6 @@ ], "cs-check": "phpcs -p --standard=vendor/cakephp/cakephp-codesniffer/CakePHP --ignore=comparisons src/ tests/", "cs-fix": "phpcbf --standard=vendor/cakephp/cakephp-codesniffer/CakePHP --ignore=comparisons src/ tests/", - "stan": "phpstan analyse && psalm.phar", - "psalm": "psalm.phar", - "stan-setup": "cp composer.json composer.backup && composer require --dev phpstan/phpstan:^1.4 psalm/phar:^4.21 && mv composer.backup composer.json", "test": "phpunit" }, "config": { From 2a3867acb5c29b0207122392deeba7e846cb8cec Mon Sep 17 00:00:00 2001 From: ADmad Date: Sun, 26 Jun 2022 19:45:07 +0530 Subject: [PATCH 2/3] Update tests to account for changes in CakePHP 4.4. --- package-lock.json | 60 +++++++++++++++---- package.json | 6 +- .../MultipleCheckboxControlTest.php | 38 ++++++++++++ .../DefaultAlign/RadioControlTest.php | 29 +++++++++ .../MultipleCheckboxControlTest.php | 41 +++++++++++++ .../HorizontalAlign/RadioControlTest.php | 30 ++++++++++ .../MultipleCheckboxControlTest.php | 18 ++++++ .../InlineAlign/RadioControlTest.php | 16 +++++ 8 files changed, 225 insertions(+), 13 deletions(-) diff --git a/package-lock.json b/package-lock.json index ea6c5ef7..c72d1530 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,21 +1,61 @@ { + "name": "bootstrap-ui", + "lockfileVersion": 2, "requires": true, - "lockfileVersion": 1, + "packages": { + "": { + "dependencies": { + "@popperjs/core": "^2.9.2", + "bootstrap": "^5.0.1", + "bootstrap-icons": "^1.5.0" + } + }, + "node_modules/@popperjs/core": { + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.9.2.tgz", + "integrity": "sha512-VZMYa7+fXHdwIq1TDhSXoVmSPEGM/aa+6Aiq3nVVJ9bXr24zScr+NlKFKC3iPljA7ho/GAZr+d2jOf5GIRC30Q==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, + "node_modules/bootstrap": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.0.1.tgz", + "integrity": "sha512-Fl79+wsLOZKoiU345KeEaWD0ik8WKRI5zm0YSPj2oF1Qr+BO7z0fco6GbUtqjoG1h4VI89PeKJnMsMMVQdKKTw==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/bootstrap" + }, + "peerDependencies": { + "@popperjs/core": "^2.9.2" + } + }, + "node_modules/bootstrap-icons": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/bootstrap-icons/-/bootstrap-icons-1.5.0.tgz", + "integrity": "sha512-44feMc7DE1Ccpsas/1wioN8ewFJNquvi5FewA06wLnqct7CwMdGDVy41ieHaacogzDqLfG8nADIvMNp9e4bfbA==", + "engines": { + "node": ">=10" + } + } + }, "dependencies": { "@popperjs/core": { - "version": "2.10.2", - "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.10.2.tgz", - "integrity": "sha512-IXf3XA7+XyN7CP9gGh/XB0UxVMlvARGEgGXLubFICsUMGz6Q+DU+i4gGlpOxTjKvXjkJDJC8YdqdKkDj9qZHEQ==" + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.9.2.tgz", + "integrity": "sha512-VZMYa7+fXHdwIq1TDhSXoVmSPEGM/aa+6Aiq3nVVJ9bXr24zScr+NlKFKC3iPljA7ho/GAZr+d2jOf5GIRC30Q==" }, "bootstrap": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.1.3.tgz", - "integrity": "sha512-fcQztozJ8jToQWXxVuEyXWW+dSo8AiXWKwiSSrKWsRB/Qt+Ewwza+JWoLKiTuQLaEPhdNAJ7+Dosc9DOIqNy7Q==" + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.0.1.tgz", + "integrity": "sha512-Fl79+wsLOZKoiU345KeEaWD0ik8WKRI5zm0YSPj2oF1Qr+BO7z0fco6GbUtqjoG1h4VI89PeKJnMsMMVQdKKTw==", + "requires": {} }, "bootstrap-icons": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/bootstrap-icons/-/bootstrap-icons-1.6.1.tgz", - "integrity": "sha512-MNpF89+njCdVJePDRbCd2DrUusqIyNsPlBrdKqBEXAvFZpwb+Gc8k2VlyF2ueiDQn1PoeTSg9UqQNgx8tGqHAA==" + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/bootstrap-icons/-/bootstrap-icons-1.5.0.tgz", + "integrity": "sha512-44feMc7DE1Ccpsas/1wioN8ewFJNquvi5FewA06wLnqct7CwMdGDVy41ieHaacogzDqLfG8nADIvMNp9e4bfbA==" } } } diff --git a/package.json b/package.json index 916378a8..b96a3bd5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "dependencies": { - "@popperjs/core": "^2.10.2", - "bootstrap": "^5.1.3", - "bootstrap-icons": "^1.6.1" + "@popperjs/core": "^2.9.2", + "bootstrap": "^5.0.1", + "bootstrap-icons": "^1.5.0" } } diff --git a/tests/TestCase/View/Helper/FormHelper/DefaultAlign/MultipleCheckboxControlTest.php b/tests/TestCase/View/Helper/FormHelper/DefaultAlign/MultipleCheckboxControlTest.php index f8b3d5e7..ba2cb5b6 100644 --- a/tests/TestCase/View/Helper/FormHelper/DefaultAlign/MultipleCheckboxControlTest.php +++ b/tests/TestCase/View/Helper/FormHelper/DefaultAlign/MultipleCheckboxControlTest.php @@ -25,6 +25,7 @@ public function testDefaultAlignMultipleCheckboxControl() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -77,6 +78,7 @@ public function testDefaultAlignMultipleCheckboxControlWithDisabledLabel() ]], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -132,6 +134,7 @@ public function testDefaultAlignMultipleCheckboxControlWithCustomLabel() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -191,6 +194,7 @@ public function testDefaultAlignMultipleCheckboxControlWithCustomLabelOptions() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -242,6 +246,7 @@ public function testDefaultAlignMultipleCheckboxControlWithHelp() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -303,6 +308,7 @@ public function testDefaultAlignMultipleCheckboxControlWithHelpOptions() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -366,6 +372,7 @@ public function testDefaultAlignMultipleCheckboxControlWithTooltip() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -394,6 +401,7 @@ public function testDefaultAlignMultipleCheckboxControlWithCustomSpacing() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -428,6 +436,7 @@ public function testDefaultAlignMultipleCheckboxControlWithError() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -494,6 +503,7 @@ public function testDefaultAlignMultipleCheckboxControlWithErrorAndHelp() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -568,6 +578,7 @@ public function testDefaultAlignMultipleCheckboxControlWithErrorAndHelpOptions() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -642,6 +653,7 @@ public function testDefaultAlignMultipleCheckboxControlCustomAriaDescribedByWith ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -711,6 +723,7 @@ public function testDefaultAlignMultipleCheckboxControlContainerOptions() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -774,6 +787,7 @@ public function testDefaultAlignMultipleCheckboxControlContainerOptionsWithError ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -832,6 +846,7 @@ public function testDefaultAlignMultipleCheckboxControlNestedInput() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -891,6 +906,7 @@ public function testDefaultAlignMultipleCheckboxControlNestedInputWithError() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -949,6 +965,7 @@ public function testDefaultAlignMultipleCheckboxControlInline() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -998,6 +1015,7 @@ public function testDefaultAlignMultipleCheckboxControlInlineWithDisabledLabel() ['div' => ['class' => 'mb-3 form-group multicheckbox', 'role' => 'group', 'aria-labelledby' => 'users-group-label']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1050,6 +1068,7 @@ public function testDefaultAlignMultipleCheckboxControlInlineWithCustomLabel() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1106,6 +1125,7 @@ public function testDefaultAlignMultipleCheckboxControlInlineWithCustomLabelOpti '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1162,6 +1182,7 @@ public function testDefaultAlignMultipleCheckboxControlInlineWithHelp() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1228,6 +1249,7 @@ public function testDefaultAlignMultipleCheckboxControlInlineWithHelpOptions() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1296,6 +1318,7 @@ public function testDefaultAlignMultipleCheckboxControlInlineWithTooltip() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1331,6 +1354,7 @@ public function testDefaultAlignMultipleCheckboxControlInlineWithError() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1398,6 +1422,7 @@ public function testDefaultAlignMultipleCheckboxControlInlineContainerOptions() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1462,6 +1487,7 @@ public function testDefaultAlignMultipleCheckboxControlInlineContainerOptionsWit ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1521,6 +1547,7 @@ public function testDefaultAlignMultipleCheckboxControlInlineNestedInput() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1577,6 +1604,7 @@ public function testDefaultAlignMultipleCheckboxControlOptionGroups() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1670,6 +1698,7 @@ public function testDefaultAlignMultipleCheckboxControlOptionGroupsWithCustomSpa '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1768,6 +1797,7 @@ public function testDefaultAlignMultipleCheckboxControlOptionGroupsWithError() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1870,6 +1900,7 @@ public function testDefaultAlignMultipleCheckboxControlOptionGroupsNestedInput() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1961,6 +1992,7 @@ public function testDefaultAlignMultipleCheckboxControlOptionGroupsInline() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -2053,6 +2085,7 @@ public function testDefaultAlignMultipleCheckboxControlOptionGroupsInlineNestedI '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -2141,6 +2174,7 @@ public function testDefaultAlignMultipleCheckboxControlOptionsGroupsAndSingleEnt '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -2248,6 +2282,7 @@ public function testDefaultAlignMultipleCheckboxControlOptionsGroupsAndSingleEnt '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -2365,6 +2400,7 @@ public function testDefaultAlignMultipleCheckboxControlOptionsGroupsAndSingleEnt '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -2473,6 +2509,7 @@ public function testDefaultAlignMultipleCheckboxControlOptionsGroupsAndSingleEnt '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -2586,6 +2623,7 @@ public function testDefaultAlignMultipleCheckboxControlSwitch() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], diff --git a/tests/TestCase/View/Helper/FormHelper/DefaultAlign/RadioControlTest.php b/tests/TestCase/View/Helper/FormHelper/DefaultAlign/RadioControlTest.php index ec93689d..10ec5a83 100644 --- a/tests/TestCase/View/Helper/FormHelper/DefaultAlign/RadioControlTest.php +++ b/tests/TestCase/View/Helper/FormHelper/DefaultAlign/RadioControlTest.php @@ -25,6 +25,7 @@ public function testDefaultAlignRadioControl() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -73,6 +74,7 @@ public function testDefaultAlignRadioControlWithDisabledLabel() ['div' => ['class' => 'mb-3 form-group radio', 'role' => 'group', 'aria-labelledby' => 'users-group-label']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -124,6 +126,7 @@ public function testDefaultAlignRadioControlWithCustomLabel() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -179,6 +182,7 @@ public function testDefaultAlignRadioControlWithCustomLabelOptions() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -230,6 +234,7 @@ public function testDefaultAlignRadioControlWithHelp() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -291,6 +296,7 @@ public function testDefaultAlignRadioControlWithHelpOptions() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -353,6 +359,7 @@ public function testDefaultAlignRadioControlWithTooltip() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -381,6 +388,7 @@ public function testDefaultAlignRadioControlWithCustomSpacing() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -415,6 +423,7 @@ public function testDefaultAlignRadioControlWithError() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -483,6 +492,7 @@ public function testDefaultAlignRadioControlWithErrorAndHelp() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -557,6 +567,7 @@ public function testDefaultAlignRadioControlWithErrorAndHelpOptions() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -630,6 +641,7 @@ public function testDefaultAlignRadioControlContainerOptions() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -693,6 +705,7 @@ public function testDefaultAlignRadioControlContainerOptionsWithError() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -753,6 +766,7 @@ public function testDefaultAlignRadioControlNestedInput() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -804,6 +818,7 @@ public function testDefaultAlignRadioControlInline() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -853,6 +868,7 @@ public function testDefaultAlignRadioControlInlineWithDisabledLabel() ['div' => ['class' => 'mb-3 form-group radio', 'role' => 'group', 'aria-labelledby' => 'users-group-label']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -905,6 +921,7 @@ public function testDefaultAlignRadioControlInlineWithCustomLabel() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -965,6 +982,7 @@ public function testDefaultAlignRadioControlInlineWithCustomLabelOptions() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1017,6 +1035,7 @@ public function testDefaultAlignRadioControlInlineWithHelp() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1079,6 +1098,7 @@ public function testDefaultAlignRadioControlInlineWithHelpOptions() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1142,6 +1162,7 @@ public function testDefaultAlignRadioControlInlineWithTooltip() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1177,6 +1198,7 @@ public function testDefaultAlignRadioControlInlineWithError() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1246,6 +1268,7 @@ public function testDefaultAlignRadioControlInlineContainerOptions() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1310,6 +1333,7 @@ public function testDefaultAlignRadioControlInlineContainerOptionsWithError() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1371,6 +1395,7 @@ public function testDefaultAlignRadioControlInlineNestedInput() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1431,6 +1456,7 @@ public function testDefaultAlignRadioControlInlineNestedInputWithError() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1498,6 +1524,7 @@ public function testPerOptionConfiguration() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1569,6 +1596,7 @@ public function testPerOptionConfigurationInline() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1641,6 +1669,7 @@ public function testPerOptionConfigurationInlineNestedInput() '/label', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], diff --git a/tests/TestCase/View/Helper/FormHelper/HorizontalAlign/MultipleCheckboxControlTest.php b/tests/TestCase/View/Helper/FormHelper/HorizontalAlign/MultipleCheckboxControlTest.php index 95a3ccd2..c4fb137e 100644 --- a/tests/TestCase/View/Helper/FormHelper/HorizontalAlign/MultipleCheckboxControlTest.php +++ b/tests/TestCase/View/Helper/FormHelper/HorizontalAlign/MultipleCheckboxControlTest.php @@ -34,6 +34,8 @@ public function testHorizontalAlignMultipleCheckboxControl() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -95,6 +97,8 @@ public function testHorizontalAlignMultipleCheckboxControlWithDisabledLabel() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -159,6 +163,8 @@ public function testHorizontalAlignMultipleCheckboxControlWithCustomLabel() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -227,6 +233,8 @@ public function testHorizontalAlignMultipleCheckboxControlWithCustomLabelOptions ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -291,6 +299,7 @@ public function testHorizontalAlignMultipleCheckboxControlWithHelp() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -365,6 +374,7 @@ public function testHorizontalAlignMultipleCheckboxControlWithHelpOptions() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -437,6 +447,7 @@ public function testHorizontalAlignMultipleCheckboxControlWithTooltip() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -474,6 +485,7 @@ public function testHorizontalAlignMultipleCheckboxControlWithCustomSpacing() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -517,6 +529,7 @@ public function testHorizontalAlignMultipleCheckboxControlWithError() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -592,6 +605,7 @@ public function testHorizontalAlignMultipleCheckboxControlWithErrorAndHelp() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -675,6 +689,7 @@ public function testHorizontalAlignMultipleCheckboxControlWithErrorAndHelpOption ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -757,6 +772,7 @@ public function testHorizontalAlignMultipleCheckboxControlContainerOptions() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -829,6 +845,7 @@ public function testHorizontalAlignMultipleCheckboxControlContainerOptionsWithEr ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -896,6 +913,7 @@ public function testHorizontalAlignMultipleCheckboxControlNestedInput() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -964,6 +982,7 @@ public function testHorizontalAlignMultipleCheckboxControlNestedInputWithError() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1031,6 +1050,7 @@ public function testHorizontalAlignMultipleCheckboxControlInline() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1093,6 +1113,7 @@ public function testHorizontalAlignMultipleCheckboxControlInlineWithDisabledLabe ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1158,6 +1179,7 @@ public function testHorizontalAlignMultipleCheckboxControlInlineWithCustomLabel( ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1227,6 +1249,7 @@ public function testHorizontalAlignMultipleCheckboxControlInlineWithCustomLabelO ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1292,6 +1315,7 @@ public function testHorizontalAlignMultipleCheckboxControlInlineWithHelp() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1367,6 +1391,7 @@ public function testHorizontalAlignMultipleCheckboxControlInlineWithHelpOptions( ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1440,6 +1465,7 @@ public function testHorizontalAlignMultipleCheckboxControlInlineWithTooltip() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1484,6 +1510,7 @@ public function testHorizontalAlignMultipleCheckboxControlInlineWithError() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1560,6 +1587,7 @@ public function testHorizontalAlignMultipleCheckboxControlInlineContainerOptions ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1633,6 +1661,7 @@ public function testHorizontalAlignMultipleCheckboxControlInlineContainerOptions ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1701,6 +1730,7 @@ public function testHorizontalAlignMultipleCheckboxControlInlineNestedInput() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1766,6 +1796,7 @@ public function testHorizontalAlignMultipleCheckboxControlOptionGroups() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1870,6 +1901,7 @@ public function testHorizontalAlignMultipleCheckboxControlOptionGroupsWithCustom ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1977,6 +2009,7 @@ public function testHorizontalAlignMultipleCheckboxControlOptionGroupsWithError( ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -2088,6 +2121,7 @@ public function testHorizontalAlignMultipleCheckboxControlOptionGroupsNestedInpu ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -2188,6 +2222,7 @@ public function testHorizontalAlignMultipleCheckboxControlOptionGroupsInline() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -2289,6 +2324,7 @@ public function testHorizontalAlignMultipleCheckboxControlOptionGroupsInlineNest ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -2386,6 +2422,7 @@ public function testHorizontalAlignMultipleCheckboxControlOptionsGroupsAndSingle ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -2502,6 +2539,7 @@ public function testHorizontalAlignMultipleCheckboxControlOptionsGroupsAndSingle ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -2628,6 +2666,7 @@ public function testHorizontalAlignMultipleCheckboxControlOptionsGroupsAndSingle ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -2745,6 +2784,7 @@ public function testHorizontalAlignMultipleCheckboxControlOptionsGroupsAndSingle ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -2867,6 +2907,7 @@ public function testHorizontalAlignMultipleCheckboxControlSwitch() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], diff --git a/tests/TestCase/View/Helper/FormHelper/HorizontalAlign/RadioControlTest.php b/tests/TestCase/View/Helper/FormHelper/HorizontalAlign/RadioControlTest.php index 57ee7e70..595b70fa 100644 --- a/tests/TestCase/View/Helper/FormHelper/HorizontalAlign/RadioControlTest.php +++ b/tests/TestCase/View/Helper/FormHelper/HorizontalAlign/RadioControlTest.php @@ -34,6 +34,7 @@ public function testHorizontalAlignRadioControl() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -91,6 +92,7 @@ public function testHorizontalAlignRadioControlWithDisabledLabel() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -151,6 +153,7 @@ public function testHorizontalAlignRadioControlWithCustomLabel() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -215,6 +218,7 @@ public function testHorizontalAlignRadioControlWithCustomLabelOptions() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -275,6 +279,7 @@ public function testHorizontalAlignRadioControlWithHelp() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -345,6 +350,7 @@ public function testHorizontalAlignRadioControlWithHelpOptions() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -416,6 +422,7 @@ public function testHorizontalAlignRadioControlWithTooltip() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -453,6 +460,7 @@ public function testHorizontalAlignRadioControlWithCustomSpacing() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -496,6 +504,7 @@ public function testHorizontalAlignRadioControlWithError() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -573,6 +582,7 @@ public function testHorizontalAlignRadioControlWithErrorAndHelp() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -656,6 +666,7 @@ public function testHorizontalAlignRadioControlWithErrorAndHelpOptions() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -738,6 +749,7 @@ public function testHorizontalAlignRadioControlContainerOptions() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -810,6 +822,7 @@ public function testHorizontalAlignRadioControlContainerOptionsWithError() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -879,6 +892,7 @@ public function testHorizontalAlignRadioControlNestedInput() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -947,6 +961,7 @@ public function testHorizontalAlignRadioControlNestedInputWithError() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1016,6 +1031,7 @@ public function testHorizontalAlignRadioControlInline() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1074,6 +1090,7 @@ public function testHorizontalAlignRadioControlInlineWithDisabledLabel() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1135,6 +1152,7 @@ public function testHorizontalAlignRadioControlInlineWithCustomLabel() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1200,6 +1218,7 @@ public function testHorizontalAlignRadioControlInlineWithCustomLabelOptions() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1261,6 +1280,7 @@ public function testHorizontalAlignRadioControlInlineWithHelp() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1332,6 +1352,7 @@ public function testHorizontalAlignRadioControlInlineWithHelpOptions() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1404,6 +1425,7 @@ public function testHorizontalAlignRadioControlInlineWithTooltip() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1448,6 +1470,7 @@ public function testHorizontalAlignRadioControlInlineWithError() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1526,6 +1549,7 @@ public function testHorizontalAlignRadioControlInlineContainerOptions() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1599,6 +1623,7 @@ public function testHorizontalAlignRadioControlInlineContainerOptionsWithError() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1669,6 +1694,7 @@ public function testHorizontalAlignRadioControlInlineNestedInput() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1738,6 +1764,7 @@ public function testHorizontalAlignRadioControlInlineNestedInputWithError() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1814,6 +1841,7 @@ public function testHorizontalAlignRadioControlPerOptionConfiguration() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1894,6 +1922,7 @@ public function testHorizontalAlignRadioControlPerOptionConfigurationInline() ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1975,6 +2004,7 @@ public function testHorizontalAlignRadioControlPerOptionConfigurationInlineNeste ['div' => ['class' => 'col-sm-7']], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], diff --git a/tests/TestCase/View/Helper/FormHelper/InlineAlign/MultipleCheckboxControlTest.php b/tests/TestCase/View/Helper/FormHelper/InlineAlign/MultipleCheckboxControlTest.php index c68038c1..29776ae5 100644 --- a/tests/TestCase/View/Helper/FormHelper/InlineAlign/MultipleCheckboxControlTest.php +++ b/tests/TestCase/View/Helper/FormHelper/InlineAlign/MultipleCheckboxControlTest.php @@ -34,6 +34,7 @@ public function testInlineAlignMultipleCheckboxControl() '/span', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -92,6 +93,7 @@ public function testInlineAlignMultipleCheckboxControlWithDisabledLabel() ]], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -153,6 +155,7 @@ public function testInlineAlignMultipleCheckboxControlWithCustomLabel() '/span', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -222,6 +225,7 @@ public function testInlineAlignMultipleCheckboxControlWithCustomLabelOptions() '/span', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -283,6 +287,7 @@ public function testInlineAlignMultipleCheckboxControlWithHelp() '/span', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -354,6 +359,7 @@ public function testInlineAlignMultipleCheckboxControlWithHelpOptions() '/span', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -427,6 +433,7 @@ public function testInlineAlignMultipleCheckboxControlWithTooltip() '/span', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -467,6 +474,7 @@ public function testInlineAlignMultipleCheckboxControlWithError() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -539,6 +547,7 @@ public function testInlineAlignMultipleCheckboxControlWithErrorAndHelp() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -619,6 +628,7 @@ public function testInlineAlignMultipleCheckboxControlWithErrorAndHelpOptions() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -698,6 +708,7 @@ public function testInlineAlignMultipleCheckboxControlContainerOptions() '/span', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -767,6 +778,7 @@ public function testInlineAlignMultipleCheckboxControlContainerOptionsWithError( ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -842,6 +854,7 @@ public function testInlineAlignMultipleCheckboxControlWithPerOptionConfiguration '/span', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -915,6 +928,7 @@ public function testInlineAlignMultipleCheckboxControlNestedInput() '/span', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -984,6 +998,7 @@ public function testInlineAlignMultipleCheckboxControlWithPerOptionConfiguration '/span', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1060,6 +1075,7 @@ public function testInlineAlignMultipleCheckboxControlOptionGroups() '/span', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1162,6 +1178,7 @@ public function testInlineAlignMultipleCheckboxControlOptionGroupsWithError() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -1266,6 +1283,7 @@ public function testInlineAlignMultipleCheckboxControlSwitch() '/span', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], diff --git a/tests/TestCase/View/Helper/FormHelper/InlineAlign/RadioControlTest.php b/tests/TestCase/View/Helper/FormHelper/InlineAlign/RadioControlTest.php index 96704140..61cffe63 100644 --- a/tests/TestCase/View/Helper/FormHelper/InlineAlign/RadioControlTest.php +++ b/tests/TestCase/View/Helper/FormHelper/InlineAlign/RadioControlTest.php @@ -34,7 +34,9 @@ public function testInlineAlignRadioControl() '/span', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', + 'id' => 'users', 'value' => '', ]], ['div' => ['class' => 'form-check form-check-inline']], @@ -92,6 +94,7 @@ public function testInlineAlignRadioControlWithDisabledLabel() ]], ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -153,6 +156,7 @@ public function testInlineAlignRadioControlWithCustomLabel() '/span', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -222,6 +226,7 @@ public function testInlineAlignRadioControlWithCustomLabelOptions() '/span', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -283,6 +288,7 @@ public function testInlineAlignRadioControlWithHelp() '/span', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -354,6 +360,7 @@ public function testInlineAlignRadioControlWithHelpOptions() '/span', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -426,6 +433,7 @@ public function testInlineAlignRadioControlWithTooltip() '/span', 'input' => [ 'type' => 'hidden', + 'id' => 'published', 'name' => 'published', 'value' => '', ], @@ -466,6 +474,7 @@ public function testInlineAlignRadioControlWithError() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -538,6 +547,7 @@ public function testInlineAlignRadioControlWithErrorAndHelp() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -618,6 +628,7 @@ public function testInlineAlignRadioControlWithErrorAndHelpOptions() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -697,6 +708,7 @@ public function testInlineAlignRadioControlContainerOptions() '/span', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -766,6 +778,7 @@ public function testInlineAlignRadioControlContainerOptionsWithError() ['input' => [ 'class' => 'is-invalid', 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -841,6 +854,7 @@ public function testInlineAlignRadioControlWithPerOptionConfiguration() '/span', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -914,6 +928,7 @@ public function testInlineAlignRadioControlNestedInput() '/span', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], @@ -983,6 +998,7 @@ public function testInlineAlignRadioControlWithPerOptionConfigurationNestedInput '/span', ['input' => [ 'type' => 'hidden', + 'id' => 'users', 'name' => 'users', 'value' => '', ]], From d787591f60030fab8791d952e071c0bc3294d355 Mon Sep 17 00:00:00 2001 From: ADmad Date: Sun, 26 Jun 2022 20:18:26 +0530 Subject: [PATCH 3/3] Allow job with "prefer-lowest" to fail. --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af8b1707..8c23a652 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,6 +57,7 @@ jobs: else vendor/bin/phpunit fi + continue-on-error: ${{ matrix.prefer-lowest == 'prefer-lowest' }} - name: Code Coverage Report if: matrix.php-version == '7.4'