From d0fbf260a9dd006d6600c32e815698bc5ea30a70 Mon Sep 17 00:00:00 2001
From: Wim Leers <44946-wimleers@users.noreply.drupalcode.org>
Date: Thu, 24 Apr 2025 16:58:35 +0000
Subject: [PATCH] Issue #3518808 by wim leers, tedbow:
 XbConfigEntityHttpApiTest::testJavaScriptComponent test comments are
 incorrect regarding status updating

---
 tests/src/Functional/XbConfigEntityHttpApiTest.php | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tests/src/Functional/XbConfigEntityHttpApiTest.php b/tests/src/Functional/XbConfigEntityHttpApiTest.php
index dfa62696d1..377701bdde 100644
--- a/tests/src/Functional/XbConfigEntityHttpApiTest.php
+++ b/tests/src/Functional/XbConfigEntityHttpApiTest.php
@@ -878,6 +878,7 @@ class XbConfigEntityHttpApiTest extends HttpApiTestBase {
     // changed to `TRUE`.
     // @see docs/config-management.md#3.2.1
     $this->assertNotNull(Component::load('js.test'));
+    $this->assertTrue(Component::load('js.test')->status());
     $this->assertExposedCodeComponents(['js.test'], 'MISS', $request_options);
     $this->assertExposedCodeComponents(['js.test'], 'HIT', $request_options);
     // Confirm that there is no auto-save anymore.
@@ -903,8 +904,9 @@ class XbConfigEntityHttpApiTest extends HttpApiTestBase {
     $request_options[RequestOptions::BODY] = self::encodeXBData($code_component_to_send);
     $body = $this->assertExpectedResponse('PATCH', Url::fromUri('base:/xb/api/config/js_component/test'), $request_options, 200, NULL, NULL, NULL, NULL);
     $this->assertSame($expected_component, $body);
-    // Confirm that the code component IS exposed, because `status` was just
-    // changed to `TRUE`.
+    // Confirm that the code component still IS exposed (a Component config
+    // entity still exists), but is disabled aka not available to be placed (the
+    // Component config entity's `status` was just changed to `FALSE`).
     // @see docs/config-management.md#3.2.1
     $this->assertNotNull(Component::load('js.test'));
     $this->assertFalse(Component::load('js.test')->status());
-- 
GitLab