I'd REALLY like some help with the problems I am having with testing. I have a patch for issue 49 and I'd love to generate a pull request, but I don't want to do that without testing.
I'd like to emphasize again this is NOT A PROBLEM WITH MY CODE, it is a problem I'm having with testing. The problems occur with a clean checkout of the vinelab code.
Detailed info on my problem including versions, etc: https://github.com/tomb10516/NeoEloquent/wiki/Testing-Problems
I want to run queries such as following , but not by Cypher.
By NeoEloquent methods
MATCH (a:Actor)-[r:ACTED_IN]->(m:Movie) WHERE r.role='James' return a,r,m;
DB::beginTransaction( function () { } )
seems to work fine, but it has to be repeated in every test. Is there some way I can use DB::beginTransaction() and DB::rollBack() in setUp and teardown and have it actually work?
Route::get('/test', function () {
\DB::beginTransaction();
factory(\App\User::class)->create(['email'=>'test@test.com', 'password'=> bcrypt('123')]);
\DB::rollBack();
});