-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathrestapi_test.php
42 lines (39 loc) · 1.01 KB
/
restapi_test.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* Plugin that tests the REST API
* Andreas Ek, 2012-12-26.
*/
class restapi_test extends phplistPlugin
{
public $name = 'RESTAPI Test';
public $description = 'Functionality tests for the REST API plugin for phpList';
public $topMenuLinks = array(
'main' => array('category' => 'develop'),
);
public $settings = array(
'restapi_test_login' => array(
'value' => 'admin',
'description' => 'Login name for REST API testing',
'type' => 'text',
'allowempty' => 0,
'category' => 'develop',
),
'restapi_test_password' => array(
'value' => 'phplist',
'description' => 'Login password for REST API testing',
'type' => 'text',
'category' => 'develop',
),
);
public function __construct()
{
parent::__construct();
$this->coderoot = dirname(__FILE__).'/restapi_test/';
}
public function adminmenu()
{
return array(
'main' => 'Test RESTAPI',
);
}
}