summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-01-23 10:31:27 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-01-23 12:47:27 +0100
commitb299531e405e45834adbd97a41a8c5bc9743bf3a (patch)
tree04cc4ff113d5b634831c4d8975e04bae96e66825 /tests
parented31fc354473d48343df5a30e84610f1b680afe4 (diff)
Travis bump
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/Controller/PageControllerTest.php14
1 files changed, 3 insertions, 11 deletions
diff --git a/tests/unit/Controller/PageControllerTest.php b/tests/unit/Controller/PageControllerTest.php
index 548081da..99d74bf1 100644
--- a/tests/unit/Controller/PageControllerTest.php
+++ b/tests/unit/Controller/PageControllerTest.php
@@ -11,12 +11,11 @@
namespace OCA\Contacts\Controller;
-use PHPUnit_Framework_TestCase;
-
use OCP\AppFramework\Http\TemplateResponse;
+use PHPUnit\Framework\TestCase as Base;
-class PageControllerTest extends PHPUnit_Framework_TestCase {
+class PageControllerTest extends Base {
private $controller;
private $userId = 'john';
@@ -35,14 +34,7 @@ class PageControllerTest extends PHPUnit_Framework_TestCase {
$this->assertEquals(['user' => 'john'], $result->getParams());
$this->assertEquals('main', $result->getTemplateName());
+ $this->assertEquals('user', $result->getRenderAs());
$this->assertTrue($result instanceof TemplateResponse);
}
-
-
- public function testEcho() {
- $result = $this->controller->doEcho('hi');
- $this->assertEquals(['echo' => 'hi'], $result->getData());
- }
-
-
}