We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce3750c commit d2e50afCopy full SHA for d2e50af
1 file changed
tests/system/Commands/DatabaseCommandsTest.php
@@ -53,6 +53,24 @@ public function testMigrate(): void
53
$this->assertStringContainsString('Migrations complete.', $this->getBuffer());
54
}
55
56
+ public function testMigrateRollbackValidBatchNumber(): void
57
+ {
58
+ command('migrate --all');
59
+ $this->clearBuffer();
60
+
61
+ command('migrate:rollback -b 1');
62
+ $this->assertStringContainsString('Done rolling back migrations.', $this->getBuffer());
63
+ }
64
65
+ public function testMigrateRollbackInvalidBatchNumber(): void
66
67
68
69
70
+ command('migrate:rollback -b x');
71
+ $this->assertStringContainsString('Invalid batch number: x', $this->getBuffer());
72
73
74
public function testMigrateRollback(): void
75
{
76
command('migrate --all -g tests');
0 commit comments