diff --git a/tests/src/FunctionalJavascript/ListControllerTest.php b/tests/src/FunctionalJavascript/ListControllerTest.php
index 11d8409..32be628 100644
--- a/tests/src/FunctionalJavascript/ListControllerTest.php
+++ b/tests/src/FunctionalJavascript/ListControllerTest.php
@@ -141,7 +141,7 @@ class ListControllerTest extends EntityUsageJavascriptTestBase {
       ->execute();
     // Check the usage is there.
     $usage = \Drupal::service('entity_usage.usage')->listSources($node1);
-    $this->assertTrue(!empty($usage['user']));
+    $this->assertNotEmpty($usage['user']);
     // Check the usage list skips it when showing results.
     $this->drupalGet("/admin/content/entity-usage/node/{$node1->id()}");
     $assert_session->pageTextContains('Entity usage information for Node 1');
diff --git a/tests/src/FunctionalJavascript/ParagraphsTest.php b/tests/src/FunctionalJavascript/ParagraphsTest.php
index 50a6963..9c5c9d9 100644
--- a/tests/src/FunctionalJavascript/ParagraphsTest.php
+++ b/tests/src/FunctionalJavascript/ParagraphsTest.php
@@ -277,7 +277,7 @@ class ParagraphsTest extends EntityUsageJavascriptTestBase {
 
     // The usage is still there.
     $usage = $usage_service->listSources($media1);
-    $this->assertTrue(!empty($usage['paragraph']));
+    $this->assertNotEmpty($usage['paragraph']);
 
     // Assert how orphaned paragraphs on older revision are shown.
     $this->drupalGet("/admin/content/entity-usage/media/{$media1->id()}");
