Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | public static function becauseInitiallyTriggeredInTransaction(\Exception $previous): self |
||
9 | { |
||
10 | return new self( |
||
11 | <<<TXT |
||
12 | The fixture could not be set up because creating index tables does not work within a transaction |
||
13 | You can either run the test without wrapping it in a transaction with: |
||
14 | |||
15 | /** |
||
16 | * @magentoDbIsolation disabled |
||
17 | */ |
||
18 | |||
19 | Or set the fulltext indexer to "scheduled" before the transaction with: |
||
20 | |||
21 | /** |
||
22 | * @magentoDataFixtureBeforeTransaction Magento/Catalog/_files/enable_reindex_schedule.php |
||
23 | */ |
||
24 | |||
25 | TXT |
||
26 | , |
||
27 | 0, |
||
28 | $previous |
||
29 | ); |
||
32 |