Commit e1e80317 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Disable when no sendmail is available

parent e9f0b300
......@@ -102,9 +102,12 @@ class LostControllerTest extends \PHPUnit_Framework_TestCase {
}
public function testEmailSuccessful() {
if (\OC_Util::runningOnWindows()) {
// FIXME after OC_Mail refactor
$this->markTestSkipped('[Windows] sendmail is not supported on windows');
/**
* FIXME: Disable test for systems where no sendmail is available since code is static.
* @link https://github.com/owncloud/core/pull/12085
*/
if (is_null(\OC_Helper::findBinaryPath('sendmail'))) {
$this->markTestSkipped('sendmail is not available');
}
$randomToken = $this->container['SecureRandom'];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment