I have two Silverstripe websites running in the same WAMP 2.5 environment, sharing the same _ss_environment.php file (which sets database permissions etc.)
Both are:
- Silverstripe 3.2.0RC1
- Installed/ updated via Composer
- PHPUnit 3.7.28
When I go to localhost.example/dev/tests I get completely different behaviour:
Site #1 runs the tests without any issues and returns the expected output.
Site #2 won't run any test and comes back with this sort of error:
Couldn't run query:
SELECT DISTINCT "Group"."ClassName", "Group"."LastEdited", "Group"."Created", "Group"."Title", "Group"."Description", "Group"."Code", "Group"."Locked", "Group"."Sort", "Group"."HtmlEditorConfig", "Group"."ParentID", "Group"."ID", CASE WHEN "Group"."ClassName" IS NOT NULL THEN "Group"."ClassName" ELSE 'Group' END AS "RecordClassName"
FROM "Group"
WHERE ("Group"."ID" = ?)
LIMIT 1
Table 'ss_tmpdb6760406.group' doesn't exist
What the heck is going on?
The Site #2 does have more modules installed but I can't see how that'd affect MySQL permissions/behavior.
The only difference that makes sense to me is Site #1 was a clean composer install on 3.2.0RC1 when Site #2 has been upgraded from an earlier version of Silverstripe (via composer).
Does anyone have any idea of what is going on and how I can get Site #2 to test properly?
ss_tmpdb6760406
database have aGroup
table on your localhost? – 3dgoo