The original code example for "Testing Controllers" didn't include the "public
$fixtures" line - if you just copy and paste it, it will run using the default database connection instead of the test one. This might have been omitted to make the example simpler, but I think the consequences of forgetting this line are potentially very dangerous (you might delete or update live data accidentally!). So I suggest adding this line here too...
Loading
Please sign in to comment