Merge pull request #12622 from owncloud/disable-for-all

Disable when no sendmail is available
This commit is contained in:
Joas Schilling 2014-12-05 10:10:43 +01:00
commit e81c2a49d1
1 changed files with 6 additions and 3 deletions

View File

@ -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'];