We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c59fac0 commit 13da8b0Copy full SHA for 13da8b0
tests/WebFiori/Framework/Tests/Cli/CreateMigrationTest.php
@@ -61,6 +61,11 @@ public function testCreateMigration01() {
61
"11"
62
]));
63
$this->assertEquals(0, $this->getExitCode());
64
+
65
+ // Check if file was written and require it
66
+ $filePath = APP_PATH . 'Database' . DS . 'Migrations' . DS . $name . '.php';
67
+ $this->assertTrue(file_exists($filePath), "Class file was not created: $filePath");
68
+ require_once $filePath;
69
$this->assertTrue(class_exists($clazz));
70
$this->removeClass($clazz);
71
}
0 commit comments