diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-07-21 10:12:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-21 10:12:20 +0200 |
commit | 1c1ff82c066bfd9286b316cff79c509123a60801 (patch) | |
tree | f4d5b57b4a07f6d1e75cf4759a580c76a614f572 /tests | |
parent | e5bedd8947e4925c074ab96b08543193b8d62e3a (diff) | |
parent | 0b495ceff89a4e9be2771f7fd9277c3173b27355 (diff) | |
download | nextcloud-server-1c1ff82c066bfd9286b316cff79c509123a60801.tar.gz nextcloud-server-1c1ff82c066bfd9286b316cff79c509123a60801.zip |
Merge pull request #5802 from nextcloud/rm_dep_controller_functions
Remove deprecated Controller Functions
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/AppFramework/Controller/ControllerTest.php | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/tests/lib/AppFramework/Controller/ControllerTest.php b/tests/lib/AppFramework/Controller/ControllerTest.php index 59e2904e740..5c8124c5e7f 100644 --- a/tests/lib/AppFramework/Controller/ControllerTest.php +++ b/tests/lib/AppFramework/Controller/ControllerTest.php @@ -95,75 +95,6 @@ class ControllerTest extends \Test\TestCase { $this->controller = new ChildController($this->app, $request); } - - public function testParamsGet(){ - $this->assertEquals('Johnny Weissmüller', $this->controller->params('name', 'Tarzan')); - } - - - public function testParamsGetDefault(){ - $this->assertEquals('Tarzan', $this->controller->params('Ape Man', 'Tarzan')); - } - - - public function testParamsFile(){ - $this->assertEquals('filevalue', $this->controller->params('file', 'filevalue')); - } - - - public function testGetUploadedFile(){ - $this->assertEquals('filevalue', $this->controller->getUploadedFile('file')); - } - - - - public function testGetUploadedFileDefault(){ - $this->assertEquals('default', $this->controller->params('files', 'default')); - } - - - public function testGetParams(){ - $params = array( - 'name' => 'Johnny Weissmüller', - 'nickname' => 'Janey', - ); - - $this->assertEquals($params, $this->controller->getParams()); - } - - - public function testRender(){ - $this->assertTrue($this->controller->render('') instanceof TemplateResponse); - } - - - public function testSetParams(){ - $params = array('john' => 'foo'); - $response = $this->controller->render('home', $params); - - $this->assertEquals($params, $response->getParams()); - } - - - public function testRenderHeaders(){ - $headers = array('one', 'two'); - $response = $this->controller->render('', array(), '', $headers); - - $this->assertTrue(in_array($headers[0], $response->getHeaders())); - $this->assertTrue(in_array($headers[1], $response->getHeaders())); - } - - - public function testGetRequestMethod(){ - $this->assertEquals('hi', $this->controller->method()); - } - - - public function testGetEnvVariable(){ - $this->assertEquals('daheim', $this->controller->env('PATH')); - } - - /** * @expectedException \DomainException */ |