Skip to content

Remove a test that is no longer relevant. #428

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
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