Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
model crud read test failing
  • hi,

    The model crud get connection unit test is failing on my app with the message expected 'read' is not equal to 'null'.

    I put the default configs in my app config file and have not changed the db configs in the app folder. I am not sure why this test is failing. Do I need to run a new migration since changing from v1.4 to v1.5
  • Did you have a complete working app in v1.4?   

    And then did it break when you upgraded to v1.5?
  • The test doesn't do anything with your database, it sets up a mock class and tests if the read and write connections are setup properly.

    And since the mock class (defined in the same file as the test) sets the properties for read and write, I find it odd that your test gives an error on 'read' (which should be the default connection), and not on 'write'.


Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion