Skip to content

Commit ea4964d

Browse files
author
Mārtiņš Briedis
committed
Fix enum test. Value used in assertion should match the actual enum name.
1 parent 4ea0575 commit ea4964d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/framework/db/CommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1539,7 +1539,7 @@ public function testBindValuesSupportsEnums()
15391539
$command = $db->createCommand();
15401540

15411541
$command->setSql('SELECT :p1')->bindValues([':p1' => enums\Status::Active]);
1542-
$this->assertSame('ACTIVE', $command->params[':p1']);
1542+
$this->assertSame('Active', $command->params[':p1']);
15431543

15441544
$command->setSql('SELECT :p1')->bindValues([':p1' => enums\StatusTypeString::Active]);
15451545
$this->assertSame('active', $command->params[':p1']);

0 commit comments

Comments
 (0)