Skip to content

Commit

Permalink
Fix enum test. Value used in assertion should match the actual enum n…
Browse files Browse the repository at this point in the history
…ame.
  • Loading branch information
Mārtiņš Briedis committed Dec 10, 2024
1 parent 4ea0575 commit ea4964d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/framework/db/CommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit ea4964d

Please sign in to comment.