aboutsummaryrefslogtreecommitdiff
path: root/tests/ListActionTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ListActionTest.php')
-rw-r--r--tests/ListActionTest.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/ListActionTest.php b/tests/ListActionTest.php
index 6d22b916..f15e1b73 100644
--- a/tests/ListActionTest.php
+++ b/tests/ListActionTest.php
@@ -1,11 +1,9 @@
<?php
-require_once __DIR__ . '/../lib/rssbridge.php';
use PHPUnit\Framework\TestCase;
class ListActionTest extends TestCase {
- private $action;
private $data;
/**
@@ -75,17 +73,15 @@ class ListActionTest extends TestCase {
}
}
- ////////////////////////////////////////////////////////////////////////////
-
private function initAction() {
$actionFac = new ActionFactory();
$actionFac->setWorkingDir(PATH_LIB_ACTIONS);
- $this->action = $actionFac->create('list');
- $this->action->setUserData(array()); /* no user data required */
+ $action = $actionFac->create('list');
+ $action->setUserData(array()); /* no user data required */
ob_start();
- $this->action->execute();
+ $action->execute();
$this->data = ob_get_contents();
ob_clean();
ob_end_flush();