[TESTS] Add coverage ignore flags to trivial methods
This commit is contained in:
parent
fe86735b8b
commit
aef61e4c73
|
@ -33,6 +33,11 @@ use Symfony\Component\HttpFoundation\Request;
|
|||
*/
|
||||
abstract class Module
|
||||
{
|
||||
/**
|
||||
* TODO Handle configuration
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
// Load Module settings
|
||||
|
|
|
@ -4,6 +4,11 @@ namespace App\Core\Modules;
|
|||
|
||||
use App\Core\Event;
|
||||
|
||||
/**
|
||||
* TODO Plugins aren't tested yet
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
abstract class Plugin extends Module
|
||||
{
|
||||
public function __construct()
|
||||
|
@ -13,8 +18,7 @@ abstract class Plugin extends Module
|
|||
|
||||
public function name()
|
||||
{
|
||||
$cls = get_class($this);
|
||||
return mb_substr($cls, 0, -6);
|
||||
return mb_substr(static::class, 0, -6);
|
||||
}
|
||||
|
||||
public function version()
|
||||
|
@ -34,4 +38,4 @@ abstract class Plugin extends Module
|
|||
|
||||
return Event::next;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user