Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Functional testing keep giving error


Go to End


817 Views

Avatar
Dynamic

Community Member, 2 Posts

13 November 2015 at 1:40pm

Hi, I tried running some functional test back, but everytime I keep getting same error

MyFirstTest::testAnswers
Couldn't run query:
INSERT INTO "MyFirstTest_Answers" ("Created") VALUES (NOW())

Table 'ss_tmpdb8959794.MyFirstTest_Answers' doesn't exist

I did checked the temporary dabatabase 'ss_tmpdb8959794' and it is missing table 'MyFirstTest_Answers'.
I don't understand how to force my test case to create that table.
My test case contains 2 files MyFirstTest.php and MyFirstTest.yml
Any help or assistance in this is highly appreciated.