localgov icon indicating copy to clipboard operation
localgov copied to clipboard

Schema key scheduled_transitions.settings:retain_processed.duration failed with: variable type is string but applied schema class is Drupal\Core\TypedData\Plugin\DataType\IntegerData

Open finnlewis opened this issue 4 months ago • 2 comments

From https://github.com/localgovdrupal/localgov/actions/runs/8047291506/job/21976304911#step:5:19

  1. Drupal\Tests\localgov\Functional\LocalGovUpdateTest::testUpdate There should be no errors in configuration 'scheduled_transitions.settings'. Errors: Schema key scheduled_transitions.settings:retain_processed.duration failed with: variable type is string but applied schema class is Drupal\Core\TypedData\Plugin\DataType\IntegerData

Failed asserting that Array &0 ( 'scheduled_transitions.settings:retain_processed.duration' => 'variable type is string but applied schema class is Drupal\Core\TypedData\Plugin\DataType\IntegerData' ) is true.

/var/www/html/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:121 /var/www/html/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:55 /var/www/html/web/core/tests/Drupal/Tests/SchemaCheckTestTrait.php:40 /var/www/html/web/core/tests/Drupal/Tests/UpdatePathTestTrait.php:144 /var/www/html/web/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php:204 /var/www/html/web/profiles/contrib/localgov/tests/src/Functional/LocalGovUpdateTest.php:79 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:728

finnlewis avatar Feb 27 '24 12:02 finnlewis

Discussing with @ekes in Merge Tuesday meeting.

This is the update test. So this might need us writing an update hook to change our data.

finnlewis avatar Feb 27 '24 12:02 finnlewis

This might be the fixture in https://github.com/localgovdrupal/localgov/tree/3.x/tests/fixtures needs updating

millnut avatar Mar 03 '24 10:03 millnut