1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- namespace OCA\Files_Sharing\Tests;
- class HelperTest extends TestCase {
-
- public function testSetGetShareFolder() {
- $this->assertSame('/', \OCA\Files_Sharing\Helper::getShareFolder());
- \OCA\Files_Sharing\Helper::setShareFolder('/Shared/Folder');
- $sharedFolder = \OCA\Files_Sharing\Helper::getShareFolder();
- $this->assertSame('/Shared/Folder', \OCA\Files_Sharing\Helper::getShareFolder());
- $this->assertTrue(\OC\Files\Filesystem::is_dir($sharedFolder));
-
- \OC::$server->getConfig()->deleteSystemValue('share_folder');
- }
- }
|