@@ -1436,18 +1436,11 @@ public function test_fetchpriority_bumping_a_to_z() {
14361436 }
14371437
14381438 /**
1439- * Tests that `WP_Scripts::get_highest_fetchpriority_with_dependents()` correctly
1440- * reuses cached results (`$stored_results`) for shared dependencies in a diamond-shaped graph.
1439+ * Tests that `WP_Scripts::get_highest_fetchpriority_with_dependents()` correctly reuses cached results.
14411440 *
1442- * Dependency Graph:
1443- *
1444- * D <- [B, C]
1445- * B <- [A]
1446- * C <- [A]
1447- * A <- []
1448- *
1449- * This verifies that when multiple dependents share a common dependency (`D`),
1450- * the cached result for `D` is used rather than recalculating it multiple times.
1441+ * This test uses a diamond-shaped dependency graph where 'a' depends on 'b' and 'c', and both 'b' and 'c' depend
1442+ * on 'd'. This verifies that when multiple dependents share a common dependency ('d'), the cached result for 'd'
1443+ * is used rather than recalculating it multiple times.
14511444 *
14521445 * @ticket 64194
14531446 *
@@ -1598,19 +1591,11 @@ public function test_loading_strategy_with_valid_blocking_registration() {
15981591 }
15991592
16001593 /**
1601- * Tests that `WP_Scripts::filter_eligible_strategies()` correctly reuses cached results
1602- * for shared dependencies in a diamond-shaped dependency graph.
1603- *
1604- * Dependency Graph:
1605- *
1606- * D <- [B, C]
1607- * B <- [A]
1608- * C <- [A]
1609- * A <- []
1594+ * Tests that `WP_Scripts::filter_eligible_strategies()` correctly reuses cached results for shared dependencies.
16101595 *
1611- * In this scenario, both B and C depend on D, and A depends on both B and C.
1612- * The goal is to confirm that when `$stored_results` already contains an entry for D,
1613- * the cached value is reused instead of recalculating the strategies for D multiple times.
1596+ * This test uses a diamond-shaped dependency graph where 'a' depends on 'b' and 'c', and both 'b' and 'c' depend
1597+ * on 'd' (a diamond-shaped dependency graph). The goal is to confirm that when `$stored_results` already contains
1598+ * an entry for 'd', the cached value is reused instead of recalculating the strategies for 'd' multiple times.
16141599 *
16151600 * @ticket 64194
16161601 *
0 commit comments