diff --git a/core/modules/user/src/UserDataQueryInterface.php b/core/modules/user/src/UserDataQueryInterface.php index 0f96d35..17f6daf 100644 --- a/core/modules/user/src/UserDataQueryInterface.php +++ b/core/modules/user/src/UserDataQueryInterface.php @@ -2,10 +2,15 @@ namespace Drupal\user; +/** + * Objects that implement this interface can query user data. + * + * @see \Drupal\user\UserDataInterface + */ interface UserDataQueryInterface { /** - * Set the module value. + * Sets the module value. * * @param string $module * The name of the module the data is associated with. @@ -15,7 +20,7 @@ public function module($module); /** - * Set the user account ID the data is associated with. + * Sets the user account ID the data is associated with. * * @param $uid * The user account ID the data is associated with. @@ -25,7 +30,7 @@ public function module($module); public function uid($uid); /** - * Set the name of the data key. + * Sets the name of the data key. * * @param string $name * The name of the data key. @@ -35,7 +40,7 @@ public function uid($uid); public function name($name); /** - * Set the value stored. + * Sets the value stored. * * @param string $value * The value stored. @@ -45,7 +50,7 @@ public function name($name); public function value($value); /** - * Run the query. + * Runs the query. * * @return \Traversable * A list of result objects. Each object has module, uid, name and value diff --git a/core/modules/user/tests/src/Kernel/UserDataQueryTest.php b/core/modules/user/tests/src/Kernel/UserDataQueryTest.php index f560992..0abfc4c 100644 --- a/core/modules/user/tests/src/Kernel/UserDataQueryTest.php +++ b/core/modules/user/tests/src/Kernel/UserDataQueryTest.php @@ -5,7 +5,7 @@ use Drupal\KernelTests\KernelTestBase; /** - * @coversDefaultClass \Drupal\user\UserData + * @coversDefaultClass \Drupal\user\UserDataQuery * * @group user */ @@ -25,6 +25,12 @@ public function setUp() { } /** + * @covers ::module + * @covers ::uid + * @covers ::name + * @covers ::value + * @covers ::execute + * * @dataProvider userDataQueryProvider */ public function testUserDataQuery($contents, $module, $uid, $name, $value, $expected) {