diff --git a/Test/Integration/Collection/CollectHooksTest.php b/Test/Integration/Collection/CollectHooksTest.php
index <HASH>..<HASH> 100644
--- a/Test/Integration/Collection/CollectHooksTest.php
+++ b/Test/Integration/Collection/CollectHooksTest.php
@@ -52,7 +52,7 @@ class CollectHooksTest extends CollectionTestBase {
     $body = $hook_entity_base_field_info_data['body'];
 
     $this->assertNotEmpty($body);
-    $this->assertContains(
+    $this->assertStringContainsStringIgnoringCase(
       "\$fields['mymodule_text'] = \Drupal\Core\Field\BaseFieldDefinition::create('string')",
       $body,
       'The short class name in hook body code is replaced with the fully-qualified version.'
Updated for deprecated assertion usage.