diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-21 15:20:10 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-21 15:20:10 +0100 |
commit | 2b4532c6b91dc38c5af8d703826a1fbf11134a6a (patch) | |
tree | 9cd72e17ae1f7e9d3d9542e1d4163d265c06ea83 /tests | |
parent | 5a4edeea7093aa80bfb71ae9a3063f6b7a0cf067 (diff) | |
parent | d6a63016ae0e14efeefd763a1042c515b60b3f7d (diff) | |
download | nextcloud-server-2b4532c6b91dc38c5af8d703826a1fbf11134a6a.tar.gz nextcloud-server-2b4532c6b91dc38c5af8d703826a1fbf11134a6a.zip |
Merge pull request #21797 from owncloud/proper-controller-in-core
Move controller in core/ to a common subfolder
Diffstat (limited to 'tests')
-rw-r--r-- | tests/core/controller/avatarcontrollertest.php (renamed from tests/core/avatar/avatarcontrollertest.php) | 4 | ||||
-rw-r--r-- | tests/core/controller/lostcontrollertest.php (renamed from tests/core/lostpassword/controller/lostcontrollertest.php) | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/core/avatar/avatarcontrollertest.php b/tests/core/controller/avatarcontrollertest.php index 9e46e1782af..8e5e58904a7 100644 --- a/tests/core/avatar/avatarcontrollertest.php +++ b/tests/core/controller/avatarcontrollertest.php @@ -18,7 +18,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/> * */ -namespace OC\Core\Avatar; +namespace OC\Core\Controller; use OC; use OC\Core\Application; @@ -45,7 +45,7 @@ function is_uploaded_file($filename) { * * @group DB * - * @package OC\Core\Avatar + * @package OC\Core\Controller */ class AvatarControllerTest extends \Test\TestCase { use UserTrait; diff --git a/tests/core/lostpassword/controller/lostcontrollertest.php b/tests/core/controller/lostcontrollertest.php index 0843d82da3f..44bc539247f 100644 --- a/tests/core/lostpassword/controller/lostcontrollertest.php +++ b/tests/core/controller/lostcontrollertest.php @@ -19,7 +19,7 @@ * */ -namespace OC\Core\LostPassword\Controller; +namespace OC\Core\Controller; use OCP\AppFramework\Http\TemplateResponse; use OCP\AppFramework\Utility\ITimeFactory; @@ -36,7 +36,7 @@ use PHPUnit_Framework_MockObject_MockObject; /** * Class LostControllerTest * - * @package OC\Core\LostPassword\Controller + * @package OC\Core\Controller */ class LostControllerTest extends \PHPUnit_Framework_TestCase { @@ -124,8 +124,8 @@ class LostControllerTest extends \PHPUnit_Framework_TestCase { ->will($this->returnValue('https://ownCloud.com/index.php/lostpassword/')); $response = $this->lostController->resetform($token, $userId); - $expectedResponse = new TemplateResponse('core/lostpassword', - 'resetpassword', + $expectedResponse = new TemplateResponse('core', + 'lostpassword/resetpassword', array( 'link' => 'https://ownCloud.com/index.php/lostpassword/', ), |