Skip to content

allow non boolean simple conditionals #529

allow non boolean simple conditionals

allow non boolean simple conditionals #529

GitHub Actions / Test Results failed May 8, 2024 in 0s

7 errors, 832 pass in 36s

839 tests   832 ✅  36s ⏱️
124 suites    0 💤
  1 files      0 ❌  7 🔥

Results for commit d80e73b.

Annotations

Check failure on line 15 in /home/runner/work/dynamic-forms/dynamic-forms/tests/Conditional/SimpleConditionalTest.php

See this annotation in the file changed.

@github-actions github-actions / Test Results

testInvoke with data set "should hide" (Northwestern.SysDev.DynamicForms.Tests.Conditional.SimpleConditionalTest) with error

.build/junit.xml [took 0s]
Raw output
Northwestern\SysDev\DynamicForms\Tests\Conditional\SimpleConditionalTest::testInvoke with data set "should hide"
TypeError: Cannot access offset of type string on string

/home/runner/work/dynamic-forms/dynamic-forms/src/Conditional/SimpleConditional.php:21
/home/runner/work/dynamic-forms/dynamic-forms/tests/Conditional/SimpleConditionalTest.php:19

Check failure on line 15 in /home/runner/work/dynamic-forms/dynamic-forms/tests/Conditional/SimpleConditionalTest.php

See this annotation in the file changed.

@github-actions github-actions / Test Results

testInvoke with data set "inverse, should not show" (Northwestern.SysDev.DynamicForms.Tests.Conditional.SimpleConditionalTest) with error

.build/junit.xml [took 0s]
Raw output
Northwestern\SysDev\DynamicForms\Tests\Conditional\SimpleConditionalTest::testInvoke with data set "inverse, should not show"
TypeError: Cannot access offset of type string on string

/home/runner/work/dynamic-forms/dynamic-forms/src/Conditional/SimpleConditional.php:21
/home/runner/work/dynamic-forms/dynamic-forms/tests/Conditional/SimpleConditionalTest.php:19

Check failure on line 15 in /home/runner/work/dynamic-forms/dynamic-forms/tests/Conditional/SimpleConditionalTest.php

See this annotation in the file changed.

@github-actions github-actions / Test Results

testInvoke with data set "Missing value handled" (Northwestern.SysDev.DynamicForms.Tests.Conditional.SimpleConditionalTest) with error

.build/junit.xml [took 0s]
Raw output
Northwestern\SysDev\DynamicForms\Tests\Conditional\SimpleConditionalTest::testInvoke with data set "Missing value handled"
ErrorException: Trying to access array offset on value of type null

/home/runner/work/dynamic-forms/dynamic-forms/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:256
/home/runner/work/dynamic-forms/dynamic-forms/src/Conditional/SimpleConditional.php:21
/home/runner/work/dynamic-forms/dynamic-forms/tests/Conditional/SimpleConditionalTest.php:19

Check failure on line 93 in /home/runner/work/dynamic-forms/dynamic-forms/tests/Forms/ValidatedFormTest.php

See this annotation in the file changed.

@github-actions github-actions / Test Results

testValidation with data set "form with conditional fields passes" (Northwestern.SysDev.DynamicForms.Tests.Forms.ValidatedFormTest) with error

.build/junit.xml [took 0s]
Raw output
Northwestern\SysDev\DynamicForms\Tests\Forms\ValidatedFormTest::testValidation with data set "form with conditional fields passes"
TypeError: Cannot access offset of type string on string

/home/runner/work/dynamic-forms/dynamic-forms/src/Conditional/SimpleConditional.php:21
/home/runner/work/dynamic-forms/dynamic-forms/src/Forms/ValidatedForm.php:153
/home/runner/work/dynamic-forms/dynamic-forms/src/Forms/ValidatedForm.php:162
/home/runner/work/dynamic-forms/dynamic-forms/src/Forms/ValidatedForm.php:36
/home/runner/work/dynamic-forms/dynamic-forms/tests/Forms/ValidatedFormTest.php:95

Check failure on line 93 in /home/runner/work/dynamic-forms/dynamic-forms/tests/Forms/ValidatedFormTest.php

See this annotation in the file changed.

@github-actions github-actions / Test Results

testValidation with data set "strips hidden conditional field from user data" (Northwestern.SysDev.DynamicForms.Tests.Forms.ValidatedFormTest) with error

.build/junit.xml [took 0s]
Raw output
Northwestern\SysDev\DynamicForms\Tests\Forms\ValidatedFormTest::testValidation with data set "strips hidden conditional field from user data"
TypeError: Cannot access offset of type string on string

/home/runner/work/dynamic-forms/dynamic-forms/src/Conditional/SimpleConditional.php:21
/home/runner/work/dynamic-forms/dynamic-forms/src/Forms/ValidatedForm.php:153
/home/runner/work/dynamic-forms/dynamic-forms/src/Forms/ValidatedForm.php:162
/home/runner/work/dynamic-forms/dynamic-forms/src/Forms/ValidatedForm.php:36
/home/runner/work/dynamic-forms/dynamic-forms/tests/Forms/ValidatedFormTest.php:95

Check failure on line 93 in /home/runner/work/dynamic-forms/dynamic-forms/tests/Forms/ValidatedFormTest.php

See this annotation in the file changed.

@github-actions github-actions / Test Results

testValidation with data set "false conditionals on parent components should skip validations on child components" (Northwestern.SysDev.DynamicForms.Tests.Forms.ValidatedFormTest) with error

.build/junit.xml [took 0s]
Raw output
Northwestern\SysDev\DynamicForms\Tests\Forms\ValidatedFormTest::testValidation with data set "false conditionals on parent components should skip validations on child components"
ErrorException: Uninitialized string offset 1

/home/runner/work/dynamic-forms/dynamic-forms/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:256
/home/runner/work/dynamic-forms/dynamic-forms/src/Conditional/SimpleConditional.php:21
/home/runner/work/dynamic-forms/dynamic-forms/src/Forms/ValidatedForm.php:153
/home/runner/work/dynamic-forms/dynamic-forms/src/Forms/ValidatedForm.php:36
/home/runner/work/dynamic-forms/dynamic-forms/tests/Forms/ValidatedFormTest.php:95

Check failure on line 93 in /home/runner/work/dynamic-forms/dynamic-forms/tests/Forms/ValidatedFormTest.php

See this annotation in the file changed.

@github-actions github-actions / Test Results

testValidation with data set "simple conditional missing properties is ignored instead of erroring - passes" (Northwestern.SysDev.DynamicForms.Tests.Forms.ValidatedFormTest) with error

.build/junit.xml [took 0s]
Raw output
Northwestern\SysDev\DynamicForms\Tests\Forms\ValidatedFormTest::testValidation with data set "simple conditional missing properties is ignored instead of erroring - passes"
TypeError: Cannot access offset of type string on string

/home/runner/work/dynamic-forms/dynamic-forms/src/Conditional/SimpleConditional.php:21
/home/runner/work/dynamic-forms/dynamic-forms/src/Forms/ValidatedForm.php:153
/home/runner/work/dynamic-forms/dynamic-forms/src/Forms/ValidatedForm.php:162
/home/runner/work/dynamic-forms/dynamic-forms/src/Forms/ValidatedForm.php:36
/home/runner/work/dynamic-forms/dynamic-forms/tests/Forms/ValidatedFormTest.php:95