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 66use YdbPlatform \Ydb \Auth \Implement \AnonymousAuthentication ;
77use YdbPlatform \Ydb \Logger \SimpleStdLogger ;
88use YdbPlatform \Ydb \Ydb ;
9- use YdbPlatform \Ydb \YdbQuery ;
109
1110class 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}
You can’t perform that action at this time.
0 commit comments