Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
Unit Testing
Cirius
April 2013
When creating an instance of the Theme class within a model of my application I have no issues.
When unit testing this same function, the test fails giving the error:
Trying to get property of non-object
for this line of code:
$theme = \Theme::instance('email');
Any ideas?
Harro
April 2013
How exactly do you unit test?
Cirius
April 2013
I've got PHPUnit running alongside Jenkins.
Harro
April 2013
And how do you bootstrap the framework? Because without that, it's not going to work.
Run your tests through oil instead, so you'll now it's setup correctly.
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Cirius
April 2013
Harro
April 2013