diff --git a/core/lib/Drupal/Core/Config/Entity/ConfigEntityInterface.php b/core/lib/Drupal/Core/Config/Entity/ConfigEntityInterface.php index b49a73b..05253d0 100644 --- a/core/lib/Drupal/Core/Config/Entity/ConfigEntityInterface.php +++ b/core/lib/Drupal/Core/Config/Entity/ConfigEntityInterface.php @@ -54,8 +54,7 @@ public function disable(); * @param bool $status * The status of the configuration entity. * - * @return \Drupal\Core\Config\Entity\ConfigEntityInterface - * The class instance that this method is called on. + * @return $this */ public function setStatus($status); diff --git a/core/lib/Drupal/Core/Entity/EntityInterface.php b/core/lib/Drupal/Core/Entity/EntityInterface.php index fd57ec5..1dce191 100644 --- a/core/lib/Drupal/Core/Entity/EntityInterface.php +++ b/core/lib/Drupal/Core/Entity/EntityInterface.php @@ -65,7 +65,7 @@ public function isNew(); * (optional) Whether the entity should be forced to be new. Defaults to * TRUE. * - * @return self + * @return $this * * @see \Drupal\Core\Entity\EntityInterface::isNew() */ diff --git a/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php b/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php index 6df3fea..2bade2b 100644 --- a/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php +++ b/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php @@ -13,6 +13,7 @@ * @coversDefaultClass \Drupal\Core\Config\Entity\ConfigEntityBase * * @group Drupal + * @group Config */ class ConfigEntityBaseUnitTest extends UnitTestCase { diff --git a/core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php b/core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php index 97d10d3..2fb8ead 100644 --- a/core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php @@ -47,7 +47,7 @@ class EntityUnitTest extends UnitTestCase { /** * The route provider used for testing. * - * @var \Drupal\Core\Routing\RouteProvider|\PHPUnit_Framework_MockObject_MockObject + * @var \Drupal\Core\Routing\RouteProviderInterface|\PHPUnit_Framework_MockObject_MockObject */ protected $routeProvider; @@ -84,9 +84,7 @@ public function setUp() { ->with($this->entityType) ->will($this->returnValue($this->entityInfo)); - $this->routeProvider = $this->getMockBuilder('\Drupal\Core\Routing\RouteProvider') - ->disableOriginalConstructor() - ->getMock(); + $this->routeProvider = $this->getMock('\Drupal\Core\Routing\RouteProviderInterface'); $this->uuid = $this->getMock('\Drupal\Component\Uuid\UuidInterface');