summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/External
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-01-25 11:23:12 +0100
committerJoas Schilling <coding@schilljs.com>2018-01-25 11:33:25 +0100
commitbf2be08c9f3b6957a3327929a169eb6204e84cd0 (patch)
tree4738ade539309fea85c5db8e796783c2cdbc0438 /apps/files_sharing/tests/External
parent24af5c20bd65f8e657bcc495984234088c22e824 (diff)
downloadnextcloud-server-bf2be08c9f3b6957a3327929a169eb6204e84cd0.tar.gz
nextcloud-server-bf2be08c9f3b6957a3327929a169eb6204e84cd0.zip
Fix risky tests without assertions
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files_sharing/tests/External')
-rw-r--r--apps/files_sharing/tests/External/ScannerTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/tests/External/ScannerTest.php b/apps/files_sharing/tests/External/ScannerTest.php
index 1ad19d5c80f..fe77182e83f 100644
--- a/apps/files_sharing/tests/External/ScannerTest.php
+++ b/apps/files_sharing/tests/External/ScannerTest.php
@@ -58,7 +58,7 @@ class ScannerTest extends TestCase {
// Declaration of OCA\Files_Sharing\External\Scanner::*() should be
// compatible with OC\Files\Cache\Scanner::*()
$this->scanner->scanAll();
- $this->assertTrue(true);
+ $this->addToAssertionCount(1);
}
public function testScan() {
@@ -70,7 +70,7 @@ class ScannerTest extends TestCase {
// Declaration of OCA\Files_Sharing\External\Scanner::*() should be
// compatible with OC\Files\Cache\Scanner::*()
$this->scanner->scan('test', Scanner::SCAN_RECURSIVE);
- $this->assertTrue(true);
+ $this->addToAssertionCount(1);
}
public function testScanFile() {
@@ -78,6 +78,6 @@ class ScannerTest extends TestCase {
// Declaration of OCA\Files_Sharing\External\Scanner::*() should be
// compatible with OC\Files\Cache\Scanner::*()
$this->scanner->scanFile('test', Scanner::SCAN_RECURSIVE);
- $this->assertTrue(true);
+ $this->addToAssertionCount(1);
}
}