Try and get algolia working with local phpunit

This commit is contained in:
Jonny Barnes 2016-11-25 23:00:57 +00:00
parent ce0f63e35e
commit 74a99576d9
2 changed files with 4 additions and 2 deletions

View file

@ -26,5 +26,6 @@
<env name="CACHE_DRIVER" value="array"/> <env name="CACHE_DRIVER" value="array"/>
<env name="SESSION_DRIVER" value="array"/> <env name="SESSION_DRIVER" value="array"/>
<env name="QUEUE_DRIVER" value="sync"/> <env name="QUEUE_DRIVER" value="sync"/>
<env name="SCOUT_DRIVER" value="null"/>
</php> </php>
</phpunit> </phpunit>

View file

@ -63,8 +63,9 @@ class MicropubClientTest extends TestCase
//my client has made a request to my endpoint, which then adds //my client has made a request to my endpoint, which then adds
//to the db, so database transaction dont work //to the db, so database transaction dont work
//so lets manually delete the new entry //so lets manually delete the new entry
$newNote = \App\Note::where('note', $note); $newNote = \App\Note::where('note', $note)->first();
$newNote->forceDelete(); $newNote->unsearchable();
$newNote->delete();
} }