Skip to content

Commit 46864c9

Browse files
author
Andrey Helldar
committed
Updated tests
1 parent 39e11d0 commit 46864c9

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

tests/Commands/StatusTest.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,13 @@ public function testStatusCommand()
2121
$this->artisan('migrate:actions:status')->expectsTable([], [])->run();
2222
}
2323

24-
$filename = date('Y_m_d_His') . '_status';
25-
2624
$this->artisan('make:migration:action', ['name' => 'Status'])->run();
2725
$this->artisan('migrate:actions')->run();
2826

2927
$this->assertDatabaseCount($this->table, 1);
3028

3129
$this->artisan('migrate:actions:status')->run();
3230

33-
$this->assertDatabaseHas($this->table, [
34-
'migration' => $filename,
35-
'batch' => 1,
36-
]);
31+
$this->assertDatabaseHasLike($this->table, 'migration', 'status');
3732
}
3833
}

tests/Concerns/Laraveable.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,6 @@ protected function is6x(): bool
1212
return $this->majorVersion() === 6;
1313
}
1414

15-
protected function is7x(): bool
16-
{
17-
return $this->majorVersion() === 7;
18-
}
19-
20-
protected function is8x(): bool
21-
{
22-
return $this->majorVersion() === 8;
23-
}
24-
2515
protected function majorVersion(): int
2616
{
2717
return Str::before(Application::VERSION, '.');

0 commit comments

Comments
 (0)