12345678910111213141516171819202122232425262728293031 |
- <?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');
- }
- }
|