mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-10-13 08:52:05 -05:00
Warn when classes are used in testing environment; this means tests aren't efficient.
This commit is contained in:
1 parent
013c8707ac
commit
03956af88a
44 files changed
+410
-22
No files matched your search
@@ -40,6 +40,16 @@ use Log;
|
||||
*/
|
||||
class TransactionFactory
|
||||
{
|
||||
/**
|
||||
* Constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
if ('testing' === env('APP_ENV')) {
|
||||
Log::warning(sprintf('%s should not be instantiated in the TEST environment!', \get_class($this)));
|
||||
}
|
||||
}
|
||||
|
||||
use TransactionServiceTrait;
|
||||
|
||||
/** @var User */
|
||||
|
||||
Reference in new issue
Block a user