Add phpstan
This commit is contained in:
parent
90e8e68fa8
commit
cc557aa0fc
8 changed files with 30 additions and 8 deletions
|
@ -14,7 +14,7 @@ class DailyEmailTokenTest extends BrowserTestBase {
|
|||
|
||||
public $defaultTheme = 'stark';
|
||||
|
||||
public static $modules = [
|
||||
protected static $modules = [
|
||||
'node',
|
||||
'opd_daily_emails',
|
||||
];
|
||||
|
|
|
@ -15,7 +15,7 @@ final class DailyEmailNodeRepositoryTest extends EntityKernelTestBase {
|
|||
|
||||
use DailyEmailTestTrait;
|
||||
|
||||
public static $modules = [
|
||||
protected static $modules = [
|
||||
'node',
|
||||
'opd_daily_emails',
|
||||
];
|
||||
|
@ -32,11 +32,7 @@ final class DailyEmailNodeRepositoryTest extends EntityKernelTestBase {
|
|||
]);
|
||||
|
||||
$repository = $this->container->get(DailyEmailNodeRepository::class);
|
||||
|
||||
$this->assertInstanceOf(
|
||||
actual: $repository,
|
||||
expected: DailyEmailRepositoryInterface::class,
|
||||
);
|
||||
assert($repository instanceof DailyEmailRepositoryInterface);
|
||||
|
||||
$emails = $repository->getAll();
|
||||
|
||||
|
|
|
@ -11,6 +11,9 @@ trait DailyEmailTestTrait {
|
|||
|
||||
use NodeCreationTrait;
|
||||
|
||||
/**
|
||||
* @param array<non-empty-string, non-empty-string|int> $options
|
||||
*/
|
||||
protected function createDailyEmailNode(array $options): NodeInterface {
|
||||
return $this->createNode(array_merge(
|
||||
$options,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue