Code Duplication    Length = 11-13 lines in 2 locations

tests/lib/files/view.php 2 locations

@@ 225-235 (lines=11) @@
222
	/**
223
	 * @medium
224
	 */
225
	public function testMountPointOverwrite() {
226
		$storage1 = $this->getTestStorage(false);
227
		$storage2 = $this->getTestStorage();
228
		$storage1->mkdir('substorage');
229
		\OC\Files\Filesystem::mount($storage1, array(), '/');
230
		\OC\Files\Filesystem::mount($storage2, array(), '/substorage');
231
232
		$rootView = new \OC\Files\View('');
233
		$folderContent = $rootView->getDirectoryContent('/');
234
		$this->assertEquals(4, count($folderContent));
235
	}
236
237
	public function sharingDisabledPermissionProvider() {
238
		return [
@@ 271-283 (lines=13) @@
268
		$appConfig->setValue('core', 'shareapi_exclude_groups_list', $oldExcludeGroupsList);
269
	}
270
271
	public function testCacheIncompleteFolder() {
272
		$storage1 = $this->getTestStorage(false);
273
		\OC\Files\Filesystem::clearMounts();
274
		\OC\Files\Filesystem::mount($storage1, array(), '/incomplete');
275
		$rootView = new \OC\Files\View('/incomplete');
276
277
		$entries = $rootView->getDirectoryContent('/');
278
		$this->assertEquals(3, count($entries));
279
280
		// /folder will already be in the cache but not scanned
281
		$entries = $rootView->getDirectoryContent('/folder');
282
		$this->assertEquals(1, count($entries));
283
	}
284
285
	public function testAutoScan() {
286
		$storage1 = $this->getTestStorage(false);