Fix #20047: Throw exception when fixture not found rather than ignoring

This commit is contained in:
Ou Bo
2025-10-03 05:39:46 +08:00
committed by GitHub
parent 8104e8f2b0
commit ba41721c40
2 changed files with 4 additions and 1 deletions

View File

@ -483,6 +483,8 @@ class FixtureController extends Controller
$config[] = $fullClassName;
} elseif (class_exists($fullClassName . 'Fixture')) {
$config[] = $fullClassName . 'Fixture';
} else {
throw new Exception('Neither fixture "' . $fullClassName . '" nor "' . $fullClassName . 'Fixture" was found.');
}
}