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(); }