Skip to content

Commit dc1b43d

Browse files
committed
PHPLIB-502: Assert against transaction state
1 parent c57450e commit dc1b43d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/SpecTests/Operation.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,8 +568,7 @@ private function executeForTestRunner(FunctionalTestCase $test, Context $context
568568
* instead exposes a bool to let us know whether a transaction
569569
* is currently in progress. This code may fail down the line
570570
* and should be adjusted once PHPC-1438 is implemented. */
571-
$expected = in_array($this->arguments['state'], ['in_progress', 'starting']);
572-
$test->assertSame($expected, $args['session']->isInTransaction());
571+
$test->assertSame($this->arguments['state'], $args['session']->getTransactionState());
573572

574573
return null;
575574
case 'assertSessionUnpinned':

0 commit comments

Comments
 (0)