mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-11-20 23:43:26 +03:00
Phpunit updates (fix phpunit run, should fix build) (#1016)
should fix build, which is currently failing due to a stale phpunit config and poor choice of class name
This commit is contained in:
1 parent
c6773f8390
commit
ca4dae3ffe
6 files changed
+22
-16
No files matched your search
+4
-1
@@ -9,8 +9,11 @@
|
||||
Changes in 'master' (not in a release yet) (20XX/XX/XX)
|
||||
--------------------------
|
||||
|
||||
- Update TOTP exceptions to use handler class (see #1007, thanks @knofte, @cboltz)
|
||||
- Add documentation on Handler class use, see DOCUMENTS/HANDLER_CLASSES.md (see #1008, thanks @knofte, @cboltz)
|
||||
- Add Exec class to reduce duplication of proc_open calss, updates phpunit (see #1009, thanks @knofte, @cboltz)
|
||||
- Update build environment / github actions (run tests against PostgreSQL and MySQL databases, add phpstan as well as psalm); (thanks @knofte)
|
||||
- Add version check page (integrates with github's API), see #1006; (thanks @knofte)
|
||||
- Add version check page (integrates with github's API), (see #1006, thanks @knofte)
|
||||
- Add GitHub Actions workflow to build self-contained release archives (see #999/#973, thanks @knofte)
|
||||
- Move from Bootstrap 3 to Bootstrap 5, add dark mode CSS toggle (see #987)
|
||||
- Update CSRF protection to support multiple tokens (see #985 / #967)
|
||||
|
||||
+11
-8
@@ -11,22 +11,25 @@
|
||||
<const name="PHPUNIT_TEST" value="true" />
|
||||
</php>
|
||||
|
||||
<logging>
|
||||
<log type="coverage-clover" target="build/logs/clover.xml"/>
|
||||
<log type="coverage-html" target="./coverage" lowUpperBound="35" highLowerBound="70"/>
|
||||
</logging>
|
||||
<coverage>
|
||||
<report>
|
||||
<clover outputFile="build/logs/clover.xml"/>
|
||||
<html outputDirectory="html-coverage" lowUpperBound="50" highLowerBound="80"/>
|
||||
</report>
|
||||
</coverage>
|
||||
|
||||
<filter>
|
||||
<whitelist>
|
||||
<source ignoreIndirectDeprecations="true" restrictNotices="true" restrictWarnings="true">
|
||||
<include>
|
||||
<directory>./model/</directory>
|
||||
<directory>./public/</directory>
|
||||
<directory>./functions.inc.php/</directory>
|
||||
</include>
|
||||
<exclude>
|
||||
<directory>./tests/</directory>
|
||||
<directory>./vendor/</directory>
|
||||
<directory>./lib/</directory>
|
||||
</exclude>
|
||||
</whitelist>
|
||||
</filter>
|
||||
</source>
|
||||
|
||||
|
||||
</phpunit>
|
||||
@@ -6,9 +6,9 @@
|
||||
* @package tests
|
||||
*/
|
||||
|
||||
require_once('RemoteTest.php');
|
||||
require_once('RemoteTestCase.php');
|
||||
|
||||
class RemoteAliasTest extends RemoteTest
|
||||
class RemoteAliasTest extends RemoteTestCase
|
||||
{
|
||||
public function testGet()
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
abstract class RemoteTest extends \PHPUnit\Framework\TestCase
|
||||
abstract class RemoteTestCase extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected $server_url = 'http://change.me/to/work';
|
||||
protected $username = 'user@example.com';
|
||||
@@ -6,9 +6,9 @@
|
||||
* @package tests
|
||||
*/
|
||||
|
||||
require_once('RemoteTest.php');
|
||||
require_once('RemoteTestCase.php');
|
||||
|
||||
class RemoteUserTest extends RemoteTest
|
||||
class RemoteUserTest extends RemoteTestCase
|
||||
{
|
||||
public function testChangePassword()
|
||||
{
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
* @package tests
|
||||
*/
|
||||
|
||||
require_once('RemoteTest.php');
|
||||
require_once('RemoteTestCase.php');
|
||||
|
||||
class RemoteVacationTest extends RemoteTest
|
||||
class RemoteVacationTest extends RemoteTestCase
|
||||
{
|
||||
/**
|
||||
* Adds the test recipient data to the database.
|
||||
|
||||
Reference in new issue
Block a user