TRF Certest first commit

This commit is contained in:
2025-02-26 08:57:46 +01:00
commit 3ce064a108
2524 changed files with 475404 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
namespace Tests;
use Setting;
trait UpdatesSettings
{
/**
* Set some setting that should automatically be
* reverted to it's default value after each test.
*/
protected function setSettings(array $settings)
{
foreach ($settings as $key => $value) {
Setting::set($key, $value);
}
Setting::save();
}
}