[TESTS] Add coverage ignore flags to trivial methods

This commit is contained in:
Hugo Sales 2021-08-16 17:08:29 +01:00
parent fe86735b8b
commit aef61e4c73
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
2 changed files with 12 additions and 3 deletions

View File

@ -33,6 +33,11 @@ use Symfony\Component\HttpFoundation\Request;
*/ */
abstract class Module abstract class Module
{ {
/**
* TODO Handle configuration
*
* @codeCoverageIgnore
*/
public function __construct() public function __construct()
{ {
// Load Module settings // Load Module settings

View File

@ -4,6 +4,11 @@ namespace App\Core\Modules;
use App\Core\Event; use App\Core\Event;
/**
* TODO Plugins aren't tested yet
*
* @codeCoverageIgnore
*/
abstract class Plugin extends Module abstract class Plugin extends Module
{ {
public function __construct() public function __construct()
@ -13,8 +18,7 @@ abstract class Plugin extends Module
public function name() public function name()
{ {
$cls = get_class($this); return mb_substr(static::class, 0, -6);
return mb_substr($cls, 0, -6);
} }
public function version() public function version()
@ -34,4 +38,4 @@ abstract class Plugin extends Module
return Event::next; return Event::next;
} }
} }