Create and use DailyEmailTestTrait
This commit is contained in:
parent
37e0964b53
commit
88ec3d9e51
3 changed files with 29 additions and 17 deletions
|
@ -3,14 +3,13 @@
|
|||
namespace Drupal\Tests\opd_daily_emails\Functional;
|
||||
|
||||
use Drupal\Tests\BrowserTestBase;
|
||||
use Drupal\Tests\node\Traits\NodeCreationTrait;
|
||||
use Drupal\Tests\opd_daily_emails\Traits\DailyEmailTestTrait;
|
||||
use Drupal\Tests\token\Functional\TokenTestTrait;
|
||||
use Drupal\node\NodeInterface;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
class DailyEmailTokenTest extends BrowserTestBase {
|
||||
|
||||
use NodeCreationTrait;
|
||||
use DailyEmailTestTrait;
|
||||
use TokenTestTrait;
|
||||
|
||||
public $defaultTheme = 'stark';
|
||||
|
@ -33,13 +32,4 @@ class DailyEmailTokenTest extends BrowserTestBase {
|
|||
);
|
||||
}
|
||||
|
||||
private function createDailyEmailNode(array $options): NodeInterface {
|
||||
return $this->createNode(array_merge(
|
||||
$options,
|
||||
[
|
||||
'type' => 'daily_email',
|
||||
]
|
||||
));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue