diff --git a/core/modules/rest/tests/src/Unit/UserLoginResourceTest.php b/core/modules/rest/tests/src/Unit/UserLoginResourceTest.php index 9e6b999..d7e2445 100644 --- a/core/modules/rest/tests/src/Unit/UserLoginResourceTest.php +++ b/core/modules/rest/tests/src/Unit/UserLoginResourceTest.php @@ -174,7 +174,7 @@ public function testLoginMissingCredentialPass() { public function testLoginBlockedUserByFloodControl() { $this->testClassMock->expects($this->once()) ->method('restFloodControl') - ->will($this->returnValue(TRUE)); + ->will($this->returnValue(FALSE)); $method = $this->getProtectedMethod('login'); $method->invokeArgs($this->testClassMock, ['credentials' => ['name' => 'Druplicon', 'pass' => 'SuperSecret']]); @@ -187,7 +187,7 @@ public function testLoginBlockedUserByFloodControl() { public function testLoginBlockedUser() { $this->testClassMock->expects($this->once()) ->method('restFloodControl') - ->will($this->returnValue(FALSE)); + ->will($this->returnValue(TRUE)); $this->testClassMock->expects($this->once()) ->method('userIsBlocked') @@ -204,7 +204,7 @@ public function testLoginBlockedUser() { public function testLoginUnrecognizedUsernameOrPassword() { $this->testClassMock->expects($this->once()) ->method('restFloodControl') - ->will($this->returnValue(FALSE)); + ->will($this->returnValue(TRUE)); $this->testClassMock->expects($this->once()) ->method('userIsBlocked')