diff --git a/tests/unit/framework/db/ConnectionTest.php b/tests/unit/framework/db/ConnectionTest.php index cfbc496..07376d0 100644 --- a/tests/unit/framework/db/ConnectionTest.php +++ b/tests/unit/framework/db/ConnectionTest.php @@ -158,7 +158,7 @@ class ConnectionTest extends DatabaseTestCase $result = $connection->transaction(function () use ($connection) { $connection->createCommand()->insert('profile', ['description' => 'test transaction shortcut'])->execute(); return true; - }, $connection->beginTransaction(Transaction::READ_UNCOMMITTED)); + }, Transaction::READ_UNCOMMITTED); $this->assertTrue($result, 'transaction shortcut valid value should be returned from callback');