allows('get_template')->andReturn('Divi'); $theme->allows('parent')->andReturn(false); $theme->allows('get')->with('Version')->andReturn('5.2.1'); Functions\when('wp_get_theme')->justReturn($theme); $probe = new EnvironmentProbe(new DiviCompatibility(['GlobalLayout' => static fn (): bool => false])); $components = array_column($probe->components(), null, 'id'); self::assertSame(['GlobalLayout'], $components['divi']['problems']); self::assertSame([], $components['pods']['problems']); } }