Skip to content

Commit b94be48

Browse files
author
Илья
committed
Update CheckTxSettingsTest
1 parent 3ec79fc commit b94be48

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/CheckTxSettingsTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use YdbPlatform\Ydb\Auth\Implement\AnonymousAuthentication;
77
use YdbPlatform\Ydb\Logger\SimpleStdLogger;
88
use YdbPlatform\Ydb\Ydb;
9-
use YdbPlatform\Ydb\YdbQuery;
109

1110
class CheckTxSettingsTest extends TestCase
1211
{
@@ -23,7 +22,6 @@ class CheckTxSettingsTest extends TestCase
2322
* @var \YdbPlatform\Ydb\Session|null
2423
*/
2524
protected $session;
26-
protected $yql = "SELECT 1;";
2725

2826
public function __construct(?string $name = null, array $data = [], $dataName = '')
2927
{
@@ -66,8 +64,9 @@ public function testOnlineTxConfig(){
6664

6765
protected function checkTx(string $mode, string $value)
6866
{
69-
$query= $this->session->newQuery($this->yql)
67+
$query= $this->session->newQuery("SELECT 1;")
7068
->beginTx($mode);
7169
self::assertEquals($value, $query->getRequestData()['tx_control']->getBeginTx()->getTxMode());
70+
$query->execute();
7271
}
7372
}

0 commit comments

Comments
 (0)