Skip to content

Remove test for schema-wide getter removed in yiisoft/db#1175 - #407

Open
KalimeroMK wants to merge 2 commits into
yiisoft:masterfrom
KalimeroMK:remove-unused-schema-methods
Open

Remove test for schema-wide getter removed in yiisoft/db#1175#407
KalimeroMK wants to merge 2 commits into
yiisoft:masterfrom
KalimeroMK:remove-unused-schema-methods

Conversation

@KalimeroMK

@KalimeroMK KalimeroMK commented Aug 2, 2026

Copy link
Copy Markdown

Companion to yiisoft/db#1175, which removes getSchemaDefaultValues() from ConstraintSchemaInterface.

tests/SchemaTest.php:88 delegated to parent::testGetSchemaDefaultValues(), so the call fails with Call to undefined method once that method is gone from CommonSchemaTest. Removing the override; loadTableDefaultValues() still throws NotSupportedException and is covered through getTableDefaultValues().

Cannot merge before the core PR. I have no Oracle instance locally, so this one is only verified by isolating the affected test — please let CI confirm.

Q A
Is bugfix?
New feature?
Breaks BC?
Fixed issues yiisoft/db#1175

yiisoft/db removes getSchemaChecks(), getSchemaDefaultValues(),
getSchemaIndexes(), getSchemaPrimaryKeys() and getSchemaUniques() from
ConstraintSchemaInterface. The tests covering them here call the removed
methods, so they can no longer run.

Requires the corresponding yiisoft/db change.

Refs yiisoft/db#1175
@codecov

codecov Bot commented Aug 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.82%. Comparing base (7415aab) to head (93c0317).

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #407   +/-   ##
=========================================
  Coverage     97.82%   97.82%           
  Complexity      250      250           
=========================================
  Files            26       26           
  Lines           828      828           
=========================================
  Hits            810      810           
  Misses           18       18           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants