I'm running into a few issues regarding PHPUnit in Laravel 5 with Namespacing. I'm attempting to do a simple test on one of my routes, which of course calls a Model, but I'm getting an unexpected error when it makes the call.
PHP Fatal error: Class 'Eloquent' not found in /home/app/Models/User.php on line 10
Here is the relevant code block from User.php
<?php
use Laravel\Cashier\Billable;
use Laravel\Cashier\Contracts\Billable as BillableContract;
use Illuminate\Auth\Authenticatable;
use Illuminate\Auth\Passwords\CanResetPassword;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
class User extends \Eloquent implements AuthenticatableContract, CanResetPasswordContract, BillableContract {
It appears that I'm having some issues with Namespacing in the Testing environment. I do not want to change my Model, as it works precisely as I'd like it to with my application.
How can I make the PHPUnit environment interact with my application without making direct changes to the application?