Commit 97276af
committed
Fix test isolation by ensuring plugin is activated before configuring settings
The `test_adds_script_with_ignored_pages` test assumed the plugin was already
active from a previous test, but PHPUnit tests run in isolation and execution
order isn't guaranteed.
- Add `activatePluginIfNeeded()` helper to BrowserTestCase that conditionally
activates the plugin only if not already active
- Update `test_adds_script_with_ignored_pages` to use the helper
This ensures the test works regardless of execution order or whether the plugin
is already activated.1 parent f9d12c6 commit 97276af
2 files changed
+17
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
48 | 61 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments