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="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>
|
||||||
|
|
|
@ -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 don’t work
|
//to the db, so database transaction don’t 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();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue