From dc1b43d276a2e03650461e73948e5dfeecdb97be Mon Sep 17 00:00:00 2001 From: Andreas Braun Date: Fri, 24 Jan 2020 12:58:51 +0100 Subject: [PATCH] PHPLIB-502: Assert against transaction state --- tests/SpecTests/Operation.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/SpecTests/Operation.php b/tests/SpecTests/Operation.php index f42017df0..26f2c4f1c 100644 --- a/tests/SpecTests/Operation.php +++ b/tests/SpecTests/Operation.php @@ -568,8 +568,7 @@ private function executeForTestRunner(FunctionalTestCase $test, Context $context * instead exposes a bool to let us know whether a transaction * is currently in progress. This code may fail down the line * and should be adjusted once PHPC-1438 is implemented. */ - $expected = in_array($this->arguments['state'], ['in_progress', 'starting']); - $test->assertSame($expected, $args['session']->isInTransaction()); + $test->assertSame($this->arguments['state'], $args['session']->getTransactionState()); return null; case 'assertSessionUnpinned':