Expand some test code.

This commit is contained in:
James Cole
2020-08-01 07:55:55 +02:00
parent c26de3bdd2
commit 43fc4c5f52
4 changed files with 244 additions and 29 deletions

View File

@@ -50,17 +50,6 @@ class BudgetRepository implements BudgetRepositoryInterface
/** @var User */
private $user;
/**
* Constructor.
*/
public function __construct()
{
if ('testing' === config('app.env')) {
Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this)));
die(get_class($this));
}
}
/**
* @return bool
*/

View File

@@ -42,19 +42,7 @@ use Storage;
*/
class CategoryRepository implements CategoryRepositoryInterface
{
/** @var User */
private $user;
/**
* Constructor.
*/
public function __construct()
{
if ('testing' === config('app.env')) {
Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this)));
die(__METHOD__);
}
}
private User $user;
/**
* @param Category $category