File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 6
6
use YdbPlatform \Ydb \Auth \Implement \AnonymousAuthentication ;
7
7
use YdbPlatform \Ydb \Logger \SimpleStdLogger ;
8
8
use YdbPlatform \Ydb \Ydb ;
9
- use YdbPlatform \Ydb \YdbQuery ;
10
9
11
10
class CheckTxSettingsTest extends TestCase
12
11
{
@@ -23,7 +22,6 @@ class CheckTxSettingsTest extends TestCase
23
22
* @var \YdbPlatform\Ydb\Session|null
24
23
*/
25
24
protected $ session ;
26
- protected $ yql = "SELECT 1; " ;
27
25
28
26
public function __construct (?string $ name = null , array $ data = [], $ dataName = '' )
29
27
{
@@ -66,8 +64,9 @@ public function testOnlineTxConfig(){
66
64
67
65
protected function checkTx (string $ mode , string $ value )
68
66
{
69
- $ query = $ this ->session ->newQuery ($ this -> yql )
67
+ $ query = $ this ->session ->newQuery (" SELECT 1; " )
70
68
->beginTx ($ mode );
71
69
self ::assertEquals ($ value , $ query ->getRequestData ()['tx_control ' ]->getBeginTx ()->getTxMode ());
70
+ $ query ->execute ();
72
71
}
73
72
}
You can’t perform that action at this time.
0 commit comments