diff --git a/Application/StatusAbstract.php b/Application/StatusAbstract.php index 6ec9aceb5..d318b9255 100644 --- a/Application/StatusAbstract.php +++ b/Application/StatusAbstract.php @@ -95,14 +95,14 @@ abstract class StatusAbstract */ protected static function installRoutesHooks(string $destRoutePath, string $srcRoutePath) : void { - if (!\is_file($destRoutePath)) { - \file_put_contents($destRoutePath, 'hasManyRelations); + // count = 2 because the moduel automatically initializes 2 hasMany relationships in the __construct() + // This actually means that the delete was successful, otherwise the hasManyRelations would have been overwritten with 1 relation (see above before the delete) + self::assertCount(2, $model->hasManyRelations); $this->dbTeardown(); } }