Skip to content

Commit

Permalink
WIP: test changing Carbon::setTestNow
Browse files Browse the repository at this point in the history
  • Loading branch information
WatheqAlshowaiter committed Aug 24, 2024
1 parent c82b607 commit 3d281d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/BackupTablesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function test_generate_single_table_backup()
{
dump([3 => __FUNCTION__]);

Carbon::setTestNow();
Carbon::setTestNow(now());

$tableName = 'fathers';
BackupTables::generateBackup($tableName);
Expand All @@ -62,6 +62,8 @@ public function test_generate_single_table_backup()
if (DB::getDriverName() == 'mysql' || DB::getDriverName() == 'mariadb' || (float) App::version() >= Constants::VERSION_AFTER_STORED_AS_VIRTUAL_AS_SUPPORT) {
$this->assertEquals(DB::table($tableName)->value('full_name'), DB::table($newTableName)->value('full_name')); // StoredAs tables
}

Carbon::setTestNow();
}


Expand Down

0 comments on commit 3d281d9

Please sign in to comment.