I want to use the DB object in a set of Codeception tests I am running inside Laravel. Specifically, I want to do this as part of the _before of the test:
DB::table('name')->truncate();
At the beginning on my TestCest.php file I have this:
use \AcceptanceTester;
namespace App\Modules\Admin\Controllers;
use DB;
However, the DB object wont let me use it - I get a message
Failed to login
when I run the codecept tests.
I am certain I am missing something basic about setting up the DB object, but I cannot figure it out.