Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / pathauto / tests / src / Kernel / PathautoEntityWithStringIdTest.php
index f134d666698a61ab688e403f4d71e6e148bcc58a..e72f42d40486bb5df65105da8637dc6f9150c1f2 100644 (file)
@@ -61,7 +61,7 @@ class PathautoEntityWithStringIdTest extends KernelTestBase {
   protected function setUp() {
     parent::setUp();
     $this->installSchema('system', ['key_value']);
-    $this->installConfig(['system']);
+    $this->installConfig(['system', 'pathauto']);
     $this->installEntitySchema('pathauto_string_id_test');
     $this->createPattern('pathauto_string_id_test', '/[pathauto_string_id_test:name]');
     /** @var \Drupal\pathauto\AliasTypeManager $alias_type_manager */
@@ -87,7 +87,7 @@ class PathautoEntityWithStringIdTest extends KernelTestBase {
     $entity->save();
 
     // Check that the path was generated.
-    $this->assertEntityAlias($entity, "/$name");
+    $this->assertEntityAlias($entity, mb_strtolower("/$name"));
     // Check that the path auto state was saved with the expected key.
     $value = \Drupal::keyValue('pathauto_state.pathauto_string_id_test')->get($expected_key);
     $this->assertEquals(PathautoState::CREATE, $value);