johan's avatar

Simple test, get: ErrorException: Array to string conversion

Hello!

I'm running the simple test from the guide, and instead of a: Base table or view not found~ error I get:

ErrorException: Array to string conversion.

I can't figure out why.

The formatting on this forum confused me a bit so I instead pasted my files here: http://justpaste.it/i5fy

Sorry for the inconvience, but thanks for the help!

0 likes
2 replies
bart's avatar

I can't find any mistake in the code you published after having a quick look on it. Do you try to output a variable somewhere? Because this is typically the reason for the exception you provided.

johan's avatar

Thank you Bart.

I manage to fix it, so for anyone that has similar problems:

I changed:

$I->see('users', [

to

$I->seeRecord('users', [

It was looking at the screen and not in the database. Also my input email adress and checking email adress was not the same.

Thanks.

Please or to participate in this conversation.