diff --git a/core/modules/workspaces/src/EntityTypeInfo.php b/core/modules/workspaces/src/EntityTypeInfo.php index 525decb71b..5495c7fa4e 100644 --- a/core/modules/workspaces/src/EntityTypeInfo.php +++ b/core/modules/workspaces/src/EntityTypeInfo.php @@ -71,7 +71,7 @@ public function entityTypeBuild(array &$entity_types) { } /** - * Alter field plugin definitions. + * Alters field plugin definitions. * * @param array[] $definitions * An array of field plugin definitions. diff --git a/core/modules/workspaces/tests/src/Kernel/EntityReferenceSupportedNewEntitiesConstraintValidatorTest.php b/core/modules/workspaces/tests/src/Kernel/EntityReferenceSupportedNewEntitiesConstraintValidatorTest.php index 8dcbb4e0b2..5cef79df93 100644 --- a/core/modules/workspaces/tests/src/Kernel/EntityReferenceSupportedNewEntitiesConstraintValidatorTest.php +++ b/core/modules/workspaces/tests/src/Kernel/EntityReferenceSupportedNewEntitiesConstraintValidatorTest.php @@ -57,7 +57,7 @@ public function testNewEntitiesAllowedInDefaultWorkspace() { 'entity' => EntityTest::create([]), ], ]); - $this->assertEquals(0, $entity->validate()->count()); + $this->assertCount(0, $entity->validate()); } /** @@ -74,7 +74,7 @@ public function testNewEntitiesForbiddenInNonDefaultWorkspace() { ], ]); $violations = $entity->validate(); - $this->assertEquals(1, $violations->count()); + $this->assertCount(1, $violations); $this->assertEquals('Test entity entities can only be created in the default workspace.', $violations[0]->getMessage()); }