localgov
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
From https://github.com/localgovdrupal/localgov/actions/runs/8047291506/job/21976304911#step:5:19
- 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
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.
This might be the fixture in https://github.com/localgovdrupal/localgov/tree/3.x/tests/fixtures needs updating