Commit 72341d40 authored by webchick's avatar webchick

Issue #2219913 by Mile23: Incorrect @covers/@coversDefaultClass breaks coverage reports.

parent dc15bf2e
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
* @group Drupal * @group Drupal
* @group User * @group User
* *
* @coverDefaultClass \Drupal\user\UserAuth * @coversDefaultClass \Drupal\user\UserAuth
*/ */
class UserAuthTest extends UnitTestCase { class UserAuthTest extends UnitTestCase {
...@@ -99,7 +99,7 @@ public function setUp() { ...@@ -99,7 +99,7 @@ public function setUp() {
/** /**
* Tests failing authentication with missing credential parameters. * Tests failing authentication with missing credential parameters.
* *
* @covers ::authenticate() * @covers ::authenticate
* *
* @dataProvider providerTestAuthenticateWithMissingCredentials * @dataProvider providerTestAuthenticateWithMissingCredentials
*/ */
...@@ -127,7 +127,7 @@ public function providerTestAuthenticateWithMissingCredentials() { ...@@ -127,7 +127,7 @@ public function providerTestAuthenticateWithMissingCredentials() {
/** /**
* Tests the authenticate method with no account returned. * Tests the authenticate method with no account returned.
* *
* @covers ::authenticate() * @covers ::authenticate
*/ */
public function testAuthenticateWithNoAccountReturned() { public function testAuthenticateWithNoAccountReturned() {
$this->userStorage->expects($this->once()) $this->userStorage->expects($this->once())
...@@ -141,7 +141,7 @@ public function testAuthenticateWithNoAccountReturned() { ...@@ -141,7 +141,7 @@ public function testAuthenticateWithNoAccountReturned() {
/** /**
* Tests the authenticate method with an incorrect password. * Tests the authenticate method with an incorrect password.
* *
* @covers ::authenticate() * @covers ::authenticate
*/ */
public function testAuthenticateWithIncorrectPassword() { public function testAuthenticateWithIncorrectPassword() {
$this->userStorage->expects($this->once()) $this->userStorage->expects($this->once())
...@@ -160,7 +160,7 @@ public function testAuthenticateWithIncorrectPassword() { ...@@ -160,7 +160,7 @@ public function testAuthenticateWithIncorrectPassword() {
/** /**
* Tests the authenticate method with a correct password. * Tests the authenticate method with a correct password.
* *
* @covers ::authenticate() * @covers ::authenticate
*/ */
public function testAuthenticateWithCorrectPassword() { public function testAuthenticateWithCorrectPassword() {
$this->testUser->expects($this->once()) $this->testUser->expects($this->once())
...@@ -183,7 +183,7 @@ public function testAuthenticateWithCorrectPassword() { ...@@ -183,7 +183,7 @@ public function testAuthenticateWithCorrectPassword() {
/** /**
* Tests the authenticate method with a correct password and new password hash. * Tests the authenticate method with a correct password and new password hash.
* *
* @covers ::authenticate() * @covers ::authenticate
*/ */
public function testAuthenticateWithCorrectPasswordAndNewPasswordHash() { public function testAuthenticateWithCorrectPasswordAndNewPasswordHash() {
$this->testUser->expects($this->once()) $this->testUser->expects($this->once())
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
/** /**
* Tests the Translation annotation. * Tests the Translation annotation.
* *
* @covers \Drupal\Core\Annotation\Translation. * @covers \Drupal\Core\Annotation\Translation
*/ */
class TranslationTest extends UnitTestCase { class TranslationTest extends UnitTestCase {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment