Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions tests/Parse/ParseLogsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,26 +52,6 @@ public function testGettingOneLog()
$this->assertTrue(isset($logs[0]['url']));
}

/**
* @group parse-logs-tests
*/
public function testGettingErrorLogs()
{
// Generate an error by requesting a non-existant password reset, to verify we have at least 1 line in our logs
try {
ParseUser::requestPasswordReset('not_a_real_email');
} catch (ParseException $pe) {
// do nothing
}

$logs = ParseLogs::getErrorLogs(1);
$this->assertEquals(1, count($logs));
$this->assertEquals($logs[0]['code'], 205);
$this->assertEquals($logs[0]['message'], 'No user found with email not_a_real_email.');
$this->assertEquals($logs[0]['level'], 'error');
$this->assertTrue(isset($logs[0]['timestamp']));
}

/**
* @group parse-logs-tests
*/
Expand Down
9 changes: 0 additions & 9 deletions tests/Parse/ParseUserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -457,15 +457,6 @@ public function testPasswordReset()
ParseUser::requestPasswordReset('asdf@example.com');
}

public function testPasswordResetFails()
{
$this->setExpectedException(
'Parse\ParseException',
'No user found with email non_existent@example.com.'
);
ParseUser::requestPasswordReset('non_existent@example.com');
}

public function testUserAssociations()
{
$child = ParseObject::create('TestObject');
Expand Down