From 74a99576d9d432fd6a785c14331f0f421a5c3a66 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Fri, 25 Nov 2016 23:00:57 +0000 Subject: [PATCH] Try and get algolia working with local phpunit --- phpunit.xml | 1 + tests/MicropubClientTest.php | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/phpunit.xml b/phpunit.xml index 3e884d17..4649e2aa 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -26,5 +26,6 @@ + diff --git a/tests/MicropubClientTest.php b/tests/MicropubClientTest.php index 265e3f24..c58f5da4 100644 --- a/tests/MicropubClientTest.php +++ b/tests/MicropubClientTest.php @@ -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(); }