summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-12-05 10:10:43 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-12-05 10:10:43 +0100
commite81c2a49d10372b2709b20a0ecfdc7835297170f (patch)
treef5f98d45e434482fcca007858f913d1362985c86 /tests
parent4d53f163fdb0439a21eadad6da1920e1a3e6a822 (diff)
parente1e8031798d19554186d48d7d5f951f4a3fe21a2 (diff)
downloadnextcloud-server-e81c2a49d10372b2709b20a0ecfdc7835297170f.tar.gz
nextcloud-server-e81c2a49d10372b2709b20a0ecfdc7835297170f.zip
Merge pull request #12622 from owncloud/disable-for-all
Disable when no sendmail is available
Diffstat (limited to 'tests')
-rw-r--r--tests/core/lostpassword/controller/lostcontrollertest.php9
1 files changed, 6 insertions, 3 deletions
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'];