diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-01-23 10:31:27 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-01-23 12:47:27 +0100 |
commit | b299531e405e45834adbd97a41a8c5bc9743bf3a (patch) | |
tree | 04cc4ff113d5b634831c4d8975e04bae96e66825 /tests | |
parent | ed31fc354473d48343df5a30e84610f1b680afe4 (diff) |
Travis bump
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/Controller/PageControllerTest.php | 14 |
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()); - } - - } |