From: Lukas Reschke Date: Thu, 4 Dec 2014 15:22:44 +0000 (+0100) Subject: Disable when no sendmail is available X-Git-Tag: v8.0.0alpha1~170^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e1e8031798d19554186d48d7d5f951f4a3fe21a2;p=nextcloud-server.git Disable when no sendmail is available --- diff --git a/tests/core/lostpassword/controller/lostcontrollertest.php b/tests/core/lostpassword/controller/lostcontrollertest.php index 2f2105b85e8..2ed7692a32f 100644 --- a/tests/core/lostpassword/controller/lostcontrollertest.php +++ b/tests/core/lostpassword/controller/lostcontrollertest.php @@ -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'];