]> BookStack Code Mirror - bookstack/blobdiff - tests/Uploads/AttachmentTest.php
Fixed tests from streaming changes
[bookstack] / tests / Uploads / AttachmentTest.php
index 5545edf13255d1bf1df24e8c7e4e370b0f21f545..27a23bcaeed3d385ebce0dd27f31aa5f3ef12f5e 100644 (file)
@@ -128,7 +128,8 @@ class AttachmentTest extends TestCase
         $pageGet->assertSee($attachment->getUrl());
 
         $attachmentGet = $this->get($attachment->getUrl());
-        $attachmentGet->assertSee('Hi, This is a test file for testing the upload process.');
+        $content = $attachmentGet->streamedContent();
+        $this->assertStringContainsString('Hi, This is a test file for testing the upload process.', $content);
 
         $this->deleteUploads();
     }