Verified Commit 1630e53c authored by Dave Long's avatar Dave Long
Browse files

Issue #3488781 by poker10, quietone: TypeError: Cannot assign string to...

Issue #3488781 by poker10, quietone: TypeError: Cannot assign string to property $_serviceIds of type array in ContentEntityCloneTest::testEntityPropertiesModifications

(cherry picked from commit 1aa7bd23)
parent d96b67da
Loading
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -301,6 +301,13 @@ public function testEntityPropertiesModifications(): void {
    foreach ($properties as $property) {
      $property_name = $property->getName();

      // Only modify properties that will accept strings as default values.
      if ($property->hasType()) {
        if ($property->getType()->getName() !== 'string') {
          continue;
        }
      }

      // Modify each entity property on the clone and assert that the change is
      // not propagated to the original entity.
      $property->setValue($entity, 'default-value');