2020-01-23 12:11:47 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Tests\Functional\Admin\Sales;
|
|
|
|
|
|
|
|
|
|
use FunctionalTester;
|
|
|
|
|
use Webkul\Sales\Models\Refund;
|
|
|
|
|
|
|
|
|
|
class RefundCest
|
|
|
|
|
{
|
|
|
|
|
public function testIndex(FunctionalTester $I): void
|
|
|
|
|
{
|
|
|
|
|
$refund = $I->have(Refund::class);
|
|
|
|
|
|
|
|
|
|
$I->loginAsAdmin();
|
2022-01-03 11:01:00 +00:00
|
|
|
|
|
|
|
|
$I->amOnAdminRoute('admin.sales.refunds.index');
|
2020-01-23 12:11:47 +00:00
|
|
|
$I->seeCurrentRouteIs('admin.sales.refunds.index');
|
2022-01-03 11:01:00 +00:00
|
|
|
|
|
|
|
|
$I->see("{$refund->id}", '//script[@type="text/x-template"]');
|
2020-01-23 12:11:47 +00:00
|
|
|
}
|
|
|
|
|
}
|