0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-20 03:36:20 +02:00
postfixadmin/tests/AdminHandlerTest.php

26 lines
467 B
PHP
Raw Normal View History

2019-09-17 22:05:44 +02:00
<?php
2021-03-22 10:28:28 +01:00
class AdminHandlerTest extends \PHPUnit\Framework\TestCase
{
2021-04-13 22:19:16 +02:00
public function setUp() : void
{
2021-01-18 23:16:18 +01:00
parent::setUp();
db_execute('DELETE FROM admin');
}
2021-04-13 22:19:16 +02:00
public function testBasic()
{
2019-09-17 22:05:44 +02:00
$x = new AdminHandler();
$list = $x->getList("");
$this->assertTrue($list);
$results = $x->result();
$this->assertEmpty($results);
}
}
/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */