Try and get algolia working with local phpunit
This commit is contained in:
parent
ce0f63e35e
commit
74a99576d9
2 changed files with 4 additions and 2 deletions
|
@ -26,5 +26,6 @@
|
|||
<env name="CACHE_DRIVER" value="array"/>
|
||||
<env name="SESSION_DRIVER" value="array"/>
|
||||
<env name="QUEUE_DRIVER" value="sync"/>
|
||||
<env name="SCOUT_DRIVER" value="null"/>
|
||||
</php>
|
||||
</phpunit>
|
||||
|
|
|
@ -63,8 +63,9 @@ class MicropubClientTest extends TestCase
|
|||
//my client has made a request to my endpoint, which then adds
|
||||
//to the db, so database transaction don’t work
|
||||
//so lets manually delete the new entry
|
||||
$newNote = \App\Note::where('note', $note);
|
||||
$newNote->forceDelete();
|
||||
$newNote = \App\Note::where('note', $note)->first();
|
||||
$newNote->unsearchable();
|
||||
$newNote->delete();
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue