sarga/tests/functional/Admin/Customer/NewsletterSubscriptionCest.php

22 lines
524 B
PHP
Raw Normal View History

2020-01-23 12:11:47 +00:00
<?php
namespace Tests\Functional\Admin\Customer;
use FunctionalTester;
use Webkul\Core\Models\SubscribersList;
class NewsletterSubscriptionCest
{
public function testIndex(FunctionalTester $I): void
{
$subscriber = $I->have(SubscribersList::class);
$I->loginAsAdmin();
$I->amOnAdminRoute('admin.customers.subscribers.index');
2020-01-23 12:11:47 +00:00
$I->seeCurrentRouteIs('admin.customers.subscribers.index');
$I->see("{$subscriber->id}", '//script[@type="text/x-template"]');
2020-01-23 12:11:47 +00:00
}
}