Skip to content

Commit 3afd562

Browse files
committed
Remove a test that is no longer relevent. See:
parse-community/parse-server#5103
1 parent 77752df commit 3afd562

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

tests/Parse/ParseLogsTest.php

Lines changed: 0 additions & 20 deletions
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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -457,15 +457,6 @@ public function testPasswordReset()
457457
ParseUser::requestPasswordReset('asdf@example.com');
458458
}
459459

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

0 commit comments

Comments
 (0)