From ea4964dede7a1d6db9563ce4f0375bb73d451140 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C4=81rti=C5=86=C5=A1=20Briedis?= Date: Tue, 10 Dec 2024 12:40:50 +0200 Subject: [PATCH] Fix enum test. Value used in assertion should match the actual enum name. --- tests/framework/db/CommandTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']);