-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBulkTest.php
More file actions
43 lines (37 loc) · 1.28 KB
/
BulkTest.php
File metadata and controls
43 lines (37 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
namespace Javaabu\Forms\Tests\Feature;
use Javaabu\Forms\Tests\TestCase;
use PHPUnit\Framework\Attributes\Test;
class BulkTest extends TestCase
{
#[Test]
public function it_can_generated_bulk_actions_for_material_admin_26()
{
$this->setFrameworkMaterialAdmin26();
$this->registerTestRoute('bulk-actions');
$this->visit('/bulk-actions')
->seeElement('select')
->seeElement('option[value="approve"]')
->seeElement('option[value="ban"]')
->seeElement('option[value="delete"]')
->seeElement('button[type="submit"]')
->within('button[type="submit"]', function () {
$this->see('Apply');
});
}
#[Test]
public function it_can_generated_bulk_actions_for_bootstrap_5()
{
$this->setFrameworkBootstrap5();
$this->registerTestRoute('bulk-actions');
$this->visit('/bulk-actions')
->seeElement('select')
->seeElement('option[value="approve"]')
->seeElement('option[value="ban"]')
->seeElement('option[value="delete"]')
->seeElement('button[type="submit"]')
->within('button[type="submit"]', function () {
$this->see('Apply');
});
}
}