diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index 18ac40550cc..7bcfe78f4b1 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -23,6 +23,7 @@ Yii Framework 2 Change Log - New #20185: Add `BackedEnum` support to `AttributeTypecastBehavior` (briedis) - Bug #17365: Fix "Trying to access array offset on null" warning (xcopy) - Enh #20295: An ability to have wildcards in `yii\log\Target::$maskVars` array (xcopy) +- Bug #20296: Fix broken enum test (briedis) 2.0.51 July 18, 2024 -------------------- diff --git a/tests/framework/db/CommandTest.php b/tests/framework/db/CommandTest.php index cc30d748860..1c0b203e9ad 100644 --- a/tests/framework/db/CommandTest.php +++ b/tests/framework/db/CommandTest.php @@ -1539,7 +1539,7 @@ public function testBindValuesSupportsEnums() $command = $db->createCommand(); $command->setSql('SELECT :p1')->bindValues([':p1' => enums\Status::Active]); - $this->assertSame('ACTIVE', $command->params[':p1']); + $this->assertSame('Active', $command->params[':p1']); $command->setSql('SELECT :p1')->bindValues([':p1' => enums\StatusTypeString::Active]); $this->assertSame('active', $command->params[':p1']);