Skip to content

Commit 97d9455

Browse files
authored
Merge pull request #428 from acinader/remove-password-failure-tests
Remove a test that is no longer relevant.
2 parents 77752df + 3afd562 commit 97d9455

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

tests/Parse/ParseLogsTest.php

-20
Original file line numberDiff line numberDiff line change
@@ -52,26 +52,6 @@ public function testGettingOneLog()
5252
$this->assertTrue(isset($logs[0]['url']));
5353
}
5454

55-
/**
56-
* @group parse-logs-tests
57-
*/
58-
public function testGettingErrorLogs()
59-
{
60-
// Generate an error by requesting a non-existant password reset, to verify we have at least 1 line in our logs
61-
try {
62-
ParseUser::requestPasswordReset('not_a_real_email');
63-
} catch (ParseException $pe) {
64-
// do nothing
65-
}
66-
67-
$logs = ParseLogs::getErrorLogs(1);
68-
$this->assertEquals(1, count($logs));
69-
$this->assertEquals($logs[0]['code'], 205);
70-
$this->assertEquals($logs[0]['message'], 'No user found with email not_a_real_email.');
71-
$this->assertEquals($logs[0]['level'], 'error');
72-
$this->assertTrue(isset($logs[0]['timestamp']));
73-
}
74-
7555
/**
7656
* @group parse-logs-tests
7757
*/

tests/Parse/ParseUserTest.php

-9
Original file line numberDiff line numberDiff line change
@@ -457,15 +457,6 @@ public function testPasswordReset()
457457
ParseUser::requestPasswordReset('[email protected]');
458458
}
459459

460-
public function testPasswordResetFails()
461-
{
462-
$this->setExpectedException(
463-
'Parse\ParseException',
464-
'No user found with email [email protected].'
465-
);
466-
ParseUser::requestPasswordReset('[email protected]');
467-
}
468-
469460
public function testUserAssociations()
470461
{
471462
$child = ParseObject::create('TestObject');

0 commit comments

Comments
 (0)