diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-07-20 11:03:12 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-07-20 11:03:12 +0200 |
commit | 0b495ceff89a4e9be2771f7fd9277c3173b27355 (patch) | |
tree | 19549dcef71c3cb8f42cedf7db4f56f34f1e3bd3 /tests/lib/AppFramework/Controller/ControllerTest.php | |
parent | 5e468c0bbaf6b9838a1b92bcb04836dccff7b532 (diff) | |
download | nextcloud-server-0b495ceff89a4e9be2771f7fd9277c3173b27355.tar.gz nextcloud-server-0b495ceff89a4e9be2771f7fd9277c3173b27355.zip |
Remove deprecated Controller Functions
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/AppFramework/Controller/ControllerTest.php')
-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 */ |