]> source.dussan.org Git - nextcloud-server.git/commitdiff
Disable when no sendmail is available
authorLukas Reschke <lukas@owncloud.com>
Thu, 4 Dec 2014 15:22:44 +0000 (16:22 +0100)
committerLukas Reschke <lukas@owncloud.com>
Thu, 4 Dec 2014 15:22:44 +0000 (16:22 +0100)
tests/core/lostpassword/controller/lostcontrollertest.php

index 2f2105b85e84fdc3cf55495e2c024ab9299a2a80..2ed7692a32f7b1ae8970943f8ffb591092e77dc4 100644 (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'];