Created
May 15, 2023 11:23
-
-
Save pboese/4ef9d600b315a54a35d0658ce988270b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/S/bag.cannavigia.io (main|✔) $ ./vendor/bin/pest --testsuite=Unit --parallel --coverage 13:12:54 | |
.....................................⨯!.....⨯!.....!........⨯⨯.......⨯⨯⨯⨯⨯⨯⨯⨯⨯⨯⨯!......⨯⨯.⨯⨯.⨯⨯.......................................⨯⨯⨯⨯⨯.!.....................!...................................................................!...........!.............................!.........!...............!.....!..................!...............!......!..................!..............................................⨯⨯........ | |
.............................!.....!......... | |
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
FAILED Tests\Unit\Domain\Export\ExportInventoryLogTest > export inventory log successfully AssertionFailedError | |
The response is not a streamed response. | |
at tests/Unit/Domain/Export/ExportInventoryLogTest.php:47 | |
43▕ $res = $this->get(route('export.list', [ | |
44▕ 'entity_type' => ExportListEntityTypeEnum::INVENTORY_LOG, | |
45▕ 'ids' => [InventoryLog::latest()->first()?->id], | |
46▕ ])); | |
➜ 47▕ $content = $res->streamedContent(); | |
48▕ $res->assertOk() | |
49▕ ->assertHeader('Content-Type', 'text/csv; charset=UTF-8') | |
50▕ ->assertDownload(); | |
51▕ } | |
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
FAILED Tests\Unit\Domain\Export\ExportInventoryDetailListTest > export inventory detail list successfully AssertionFailedError | |
The response is not a streamed response. | |
at tests/Unit/Domain/Export/ExportInventoryDetailListTest.php:50 | |
46▕ 'entity_type' => ExportListEntityTypeEnum::INVENTORY_DETAIL_LIST, | |
47▕ 'dispensary_product_id' => $dispensaryProduct?->id, | |
48▕ 'ids' => $dispensaryProduct->productBatches()->pluck('id')->toArray(), | |
49▕ ])); | |
➜ 50▕ $content = $res->streamedContent(); | |
51▕ $res->assertOk() | |
52▕ ->assertHeader('Content-Type', 'text/csv; charset=UTF-8') | |
53▕ ->assertDownload(); | |
54▕ } | |
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
FAILED Tests\Unit\Domain\Export\ExportRecipientListTest > export recipient list successfully AssertionFailedError | |
The response is not a streamed response. | |
at tests/Unit/Domain/Export/ExportRecipientListTest.php:33 | |
29▕ $res = $this->get(route('export.list', [ | |
30▕ 'entity_type' => ExportListEntityTypeEnum::RECIPIENT_LIST, | |
31▕ 'ids' => $recipients->pluck('id')->toArray(), | |
32▕ ])); | |
➜ 33▕ $content = $res->streamedContent(); | |
34▕ $res->assertOk() | |
35▕ ->assertHeader('Content-Type', 'text/csv; charset=UTF-8') | |
36▕ ->assertDownload(); | |
37▕ } | |
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
FAILED Tests\Unit\Domain\Handover\HandoverExportTest > if download handover participant export successfully when enable packaging feature | |
Expected response status code [200] but received 500. | |
Failed asserting that 200 is identical to 500. | |
The following exception occurred during the last request: | |
Error: Call to undefined method Symfony\Component\HttpFoundation\BinaryFileResponse::header() in /Users/pelle/Sites/bag.cannavigia.io/app/Http/Middleware/Hsts.php:14 | |
Stack trace: | |
#0 /Users/pelle/Sites/bag.cannavigia.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\Http\Middleware\Hsts->handle(Object(Illuminate\Http\Request), Object(Closure)) | |
#1 /Users/pelle/Sites/bag.cannavigia.io/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) | |
#2 /Users/pelle/Sites/bag.cannavigia.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure)) | |
#3 /Users/pelle/Sites/bag.cannavigia.io/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) | |
#4 /Users/pelle/Sites/bag.cannavigia.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure)) | |
#5 /Users/pelle/Sites/bag.cannavigia.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) | |
#6 /Users/pelle/Sites/bag.cannavigia.io/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure)) | |
#7 /Users/pelle/Sites/bag.cannavigia.io/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request)) | |
#8 /Users/pelle/Sites/bag.cannavigia.io/vendor/laravel/framework/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php(564): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request)) | |
#9 /Users/pelle/Sites/bag.cannavigia.io/vendor/laravel/framework/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php(324): Illuminate\Foundation\Testing\TestCase->call('GET', 'http://bag.cann...', Array, Array, Array, Array) | |
#10 /Users/pelle/Sites/bag.cannavigia.io/tests/Unit/Domain/Handover/HandoverExportTest.php(78): Illuminate\Foundation\Testing\TestCase->get('http://bag.cann...') | |
#11 /Users/pelle/Sites/bag.cannavigia.io/vendor/phpunit/phpunit/src/Framework/TestCase.php(1040): Tests\Unit\Domain\Handover\HandoverExportTest->testIfDownloadHandoverParticipantExportSuccessfullyWhenEnablePackagingFeature() | |
#12 /Users/pelle/Sites/bag.cannavigia.io/vendor/laravel/framework/src/Illuminate/Foundation/Testing/TestCase.php(173): PHPUnit\Framework\TestCase->runTest() | |
#13 /Users/pelle/Sites/bag.cannavigia.io/vendor/phpunit/phpunit/src/Framework/TestCase.php(635): Illuminate\Foundation\Testing\TestCase->runTest() | |
#14 /Users/pelle/Sites/bag.cannavigia.io/vendor/phpunit/phpunit/src/Framework/TestRunner.php(101): PHPUnit\Framework\TestCase->runBare() | |
#15 /Users/pelle/Sites/bag.cannavigia.io/vendor/phpunit/phpunit/src/Framework/TestCase.php(462): PHPUnit\Framework\TestRunner->run(Object(Tests\Unit\Domain\Handover\HandoverExportTest)) | |
#16 /Users/pelle/Sites/bag.cannavigia.io/vendor/phpunit/phpunit/src/Framework/TestSuite.php(351): PHPUnit\Framework\TestCase->run() | |
#17 /Users/pelle/Sites/bag.cannavigia.io/vendor/brianium/paratest/src/WrapperRunner/ApplicationForWrapperWorker.php(72): PHPUnit\Framework\TestSuite->run() | |
#18 /Users/pelle/Sites/bag.cannavigia.io/vendor/pestphp/pest/bin/worker.php(95): ParaTest\WrapperRunner\ApplicationForWrapperWorker->runTest('/Users/pelle/Si...') | |
#19 /Users/pelle/Sites/bag.cannavigia.io/vendor/pestphp/pest/bin/worker.php(100): {closure}() | |
#20 {main} | |
---------------------------------------------------------------------------------- | |
Call to undefined method Symfony\Component\HttpFoundation\BinaryFileResponse::header() | |
at tests/Unit/Domain/Handover/HandoverExportTest.php:79 | |
75▕ ]); | |
76▕ $this->actingAs($leader); | |
77▕ | |
78▕ $res = $this->get(route('handover.participantExport')); | |
➜ 79▕ $res->assertOk() | |
80▕ ->assertHeader('Content-Type', 'text/csv; charset=UTF-8') | |
81▕ ->assertDownload(); | |
82▕ } | |
83▕ | |
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
FAILED Tests\Unit\Domain\Handover\HandoverExportTest > if download handover participant export successfully | |
Expected response status code [200] but received 500. | |
Failed asserting that 200 is identical to 500. | |
The following exception occurred during the last request: | |
Error: Call to undefined method Symfony\Component\HttpFoundation\BinaryFileResponse::header() in /Users/pelle/Sites/bag.cannavigia.io/app/Http/Middleware/Hsts.php:14 | |
Stack trace: | |
#0 /Users/pelle/Sites/bag.cannavigia.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\Http\Middleware\Hsts->handle(Object(Illuminate\Http\Request), Object(Closure)) | |
#1 /Users/pelle/Sites/bag.cannavigia.io/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) | |
#2 /Users/pelle/Sites/bag.cannavigia.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure)) | |
#3 /Users/pelle/Sites/bag.cannavigia.io/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) | |
#4 /Users/pelle/Sites/bag.cannavigia.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Http\Middleware\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure)) | |
#5 /Users/pelle/Sites/bag.cannavigia.io/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) | |
#6 /Users/pelle/Sites/bag.cannavigia.io/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then(Object(Closure)) | |
#7 /Users/pelle/Sites/bag.cannavigia.io/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request)) | |
#8 /Users/pelle/Sites/bag.cannavigia.io/vendor/laravel/framework/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php(564): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request)) | |
#9 /Users/pelle/Sites/bag.cannavigia.io/vendor/laravel/framework/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php(324): Illuminate\Foundation\Testing\TestCase->call('GET', 'http://bag.cann...', Array, Array, Array, Array) | |
#10 /Users/pelle/Sites/bag.cannavigia.io/tests/Unit/Domain/Handover/HandoverExportTest.php(131): Illuminate\Foundation\Testing\TestCase->get('http://bag.cann...') | |
#11 /Users/pelle/Sites/bag.cannavigia.io/vendor/phpunit/phpunit/src/Framework/TestCase.php(1040): Tests\Unit\Domain\Handover\HandoverExportTest->testIfDownloadHandoverParticipantExportSuccessfully() | |
#12 /Users/pelle/Sites/bag.cannavigia.io/vendor/laravel/framework/src/Illuminate/Foundation/Testing/TestCase.php(173): PHPUnit\Framework\TestCase->runTest() | |
#13 /Users/pelle/Sites/bag.cannavigia.io/vendor/phpunit/phpunit/src/Framework/TestCase.php(635): Illuminate\Foundation\Testing\TestCase->runTest() | |
#14 /Users/pelle/Sites/bag.cannavigia.io/vendor/phpunit/phpunit/src/Framework/TestRunner.php(101): PHPUnit\Framework\TestCase->runBare() | |
#15 /Users/pelle/Sites/bag.cannavigia.io/vendor/phpunit/phpunit/src/Framework/TestCase.php(462): PHPUnit\Framework\TestRunner->run(Object(Tests\Unit\Domain\Handover\HandoverExportTest)) | |
#16 /Users/pelle/Sites/bag.cannavigia.io/vendor/phpunit/phpunit/src/Framework/TestSuite.php(351): PHPUnit\Framework\TestCase->run() | |
#17 /Users/pelle/Sites/bag.cannavigia.io/vendor/brianium/paratest/src/WrapperRunner/ApplicationForWrapperWorker.php(72): PHPUnit\Framework\TestSuite->run() | |
#18 /Users/pelle/Sites/bag.cannavigia.io/vendor/pestphp/pest/bin/worker.php(95): ParaTest\WrapperRunner\ApplicationForWrapperWorker->runTest('/Users/pelle/Si...') | |
#19 /Users/pelle/Sites/bag.cannavigia.io/vendor/pestphp/pest/bin/worker.php(100): {closure}() | |
#20 {main} | |
---------------------------------------------------------------------------------- | |
Call to undefined method Symfony\Component\HttpFoundation\BinaryFileResponse::header() | |
at tests/Unit/Domain/Handover/HandoverExportTest.php:132 | |
128▕ ]); | |
129▕ $this->actingAs($leader); | |
130▕ | |
131▕ $res = $this->get(route('handover.participantExport')); | |
➜ 132▕ $res->assertOk() | |
133▕ ->assertHeader('Content-Type', 'text/csv; charset=UTF-8') | |
134▕ ->assertDownload(); | |
135▕ } | |
136▕ } | |
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
FAILED Tests\Unit\Domain\Export\ExportDispensaryListTest > export dispensary list successfully AssertionFailedError | |
The response is not a streamed response. | |
at tests/Unit/Domain/Export/ExportDispensaryListTest.php:37 | |
33▕ $res = $this->get(route('export.list', [ | |
34▕ 'entity_type' => ExportListEntityTypeEnum::DISPENSARY_LIST, | |
35▕ 'ids' => $dispensaries->pluck('id')->toArray(), | |
36▕ ])); | |
➜ 37▕ $content = $res->streamedContent(); | |
38▕ $res->assertOk() | |
39▕ ->assertHeader('Content-Type', 'text/csv; charset=UTF-8') | |
40▕ ->assertDownload(); | |
41▕ } | |
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
FAILED Tests\Unit\Domain\Export\ExportGoodsInBatchesListTest > export goods in batches list successfully AssertionFailedError | |
The response is not a streamed response. | |
at tests/Unit/Domain/Export/ExportGoodsInBatchesListTest.php:50 | |
46▕ 'entity_type' => ExportListEntityTypeEnum::GOODS_IN_BATCHES_LIST, | |
47▕ 'ids' => $goodsInProduct->goodsInProductBatches()->pluck('id')->toArray(), | |
48▕ 'goods_in_id' => $goodsIn->id, | |
49▕ ])); | |
➜ 50▕ $content = $res->streamedContent(); | |
51▕ $res->assertOk() | |
52▕ ->assertHeader('Content-Type', 'text/csv; charset=UTF-8') | |
53▕ ->assertDownload(); | |
54▕ } | |
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
FAILED Tests\Unit\Domain\Export\ExportOutboundShipmentListTest > export outbound shipment list successfully AssertionFailedError | |
The response is not a streamed response. | |
at tests/Unit/Domain/Export/ExportOutboundShipmentListTest.php:40 | |
36▕ $res = $this->get(route('export.list', [ | |
37▕ 'entity_type' => ExportListEntityTypeEnum::OUTBOUND_SHIPMENT_LIST, | |
38▕ 'ids' => $outboundShipments->pluck('id')->toArray(), | |
39▕ ])); | |
➜ 40▕ $content = $res->streamedContent(); | |
41▕ $res->assertOk() | |
42▕ ->assertHeader('Content-Type', 'text/csv; charset=UTF-8') | |
43▕ ->assertDownload(); | |
44▕ } | |
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
FAILED Tests\Unit\Domain\Export\ExportViewerListTest > export viewer list successfully AssertionFailedError | |
The response is not a streamed response. | |
at tests/Unit/Domain/Export/ExportViewerListTest.php:33 | |
29▕ $res = $this->get(route('export.list', [ | |
30▕ 'entity_type' => ExportListEntityTypeEnum::VIEWER_LIST, | |
31▕ 'ids' => $viewers->pluck('id')->toArray(), | |
32▕ ])); | |
➜ 33▕ $content = $res->streamedContent(); | |
34▕ $res->assertOk() | |
35▕ ->assertHeader('Content-Type', 'text/csv; charset=UTF-8') | |
36▕ ->assertDownload(); | |
37▕ } | |
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
FAILED Tests\Unit\Domain\Export\ExportCannavigiaNartocitcYearlyReportTest > export cannavigia narcotics yearly report index successfully AssertionFailedError | |
The response is not a streamed response. | |
at tests/Unit/Domain/Export/ExportCannavigiaNartocitcYearlyReportTest.php:32 | |
28▕ $res = $this->get(route('export.list', [ | |
29▕ 'entity_type' => ExportListEntityTypeEnum::CANNAVIGIA_YEARLY_NARCOTIC_REPORT_INDEX, | |
30▕ 'ids' => $items->pluck('id')->toArray(), | |
31▕ ])); | |
➜ 32▕ $content = $res->streamedContent(); | |
33▕ $res->assertOk() | |
34▕ ->assertHeader('Content-Type', 'text/csv; charset=UTF-8') | |
35▕ ->assertDownload(); | |
36▕ } | |
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
FAILED Tests\Unit\Domain\Export\ExportCannavigiaNartocitcYearlyReportTest > export cannavigia narcotics yearly report successfully AssertionFailedError | |
The response is not a streamed response. | |
at tests/Unit/Domain/Export/ExportCannavigiaNartocitcYearlyReportTest.php:57 | |
53▕ $res = $this->get(route('export.list', [ | |
54▕ 'entity_type' => ExportListEntityTypeEnum::CANNAVIGIA_YEARLY_NARCOTIC_REPORT, | |
55▕ 'ids' => $items->pluck('id')->toArray(), | |
56▕ ])); | |
➜ 57▕ $content = $res->streamedContent(); | |
58▕ $res->assertOk() | |
59▕ ->assertHeader('Content-Type', 'text/csv; charset=UTF-8') | |
60▕ ->assertDownload(); | |
61▕ } | |
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
FAILED Tests\Unit\Domain\Export\ExportInventoryListTest > export inventory list successfully AssertionFailedError | |
The response is not a streamed response. | |
at tests/Unit/Domain/Export/ExportInventoryListTest.php:54 | |
50▕ $res = $this->get(route('export.list', [ | |
51▕ 'entity_type' => ExportListEntityTypeEnum::INVENTORY_LIST, | |
52▕ 'ids' => DispensaryProduct::where('dispensary_id', $dispensary->id)->pluck('id')->toArray(), | |
53▕ ])); | |
➜ 54▕ $content = $res->streamedContent(); | |
55▕ $res->assertOk() | |
56▕ ->assertHeader('Content-Type', 'text/csv; charset=UTF-8') | |
57▕ ->assertDownload(); | |
58▕ } | |
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
FAILED Tests\Unit\Domain\Export\ExportParticipantsHandoverDataExportTest > export participant handovers list successfully AssertionFailedError | |
The response is not a streamed response. | |
at tests/Unit/Domain/Export/ExportParticipantsHandoverDataExportTest.php:81 | |
77▕ $res = $this->get(route('export.list', [ | |
78▕ 'entity_type' => ExportListEntityTypeEnum::PARTICIPANTS_HANDOVERS_DATA, | |
79▕ 'ids' => [$participant->id], | |
80▕ ])); | |
➜ 81▕ $content = $res->streamedContent(); | |
82▕ $res->assertOk() | |
83▕ ->assertHeader('Content-Type', 'text/csv; charset=UTF-8') | |
84▕ ->assertDownload(); | |
85▕ } | |
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
FAILED Tests\Unit\Domain\Export\ExportParticipantsHandoverDataExportTest > export participant handovers list successfully with project wh has enable packaging number feature AssertionFailedError | |
The response is not a streamed response. | |
at tests/Unit/Domain/Export/ExportParticipantsHandoverDataExportTest.php:151 | |
147▕ $res = $this->get(route('export.list', [ | |
148▕ 'entity_type' => ExportListEntityTypeEnum::PARTICIPANTS_HANDOVERS_DATA, | |
149▕ 'ids' => [$participant->id], | |
150▕ ])); | |
➜ 151▕ $content = $res->streamedContent(); | |
152▕ $res->assertOk() | |
153▕ ->assertHeader('Content-Type', 'text/csv; charset=UTF-8') | |
154▕ ->assertDownload(); | |
155▕ } | |
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
FAILED Tests\Unit\Domain\User\UserOauthRedirectTest > authorize data render and approve authorize | |
Failed asserting that an array has the key 'redirect_uri'. | |
at tests/Unit/Domain/User/UserOauthRedirectTest.php:282 | |
278▕ 'client_id' => $client->id, | |
279▕ 'auth_token' => $authorizeResponse['authToken'], | |
280▕ 'state' => $authorizeResponse['state'], | |
281▕ ]))->assertJsonStructure([ | |
➜ 282▕ 'redirect_uri', | |
283▕ ])->assertStatus(Response::HTTP_OK); | |
284▕ } | |
285▕ | |
286▕ /** | |
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
FAILED Tests\Unit\Domain\User\UserOauthRedirectTest > authorize data render and deny authorize | |
Expected response status code [204] but received 403. | |
Failed asserting that 204 is identical to 403. | |
at tests/Unit/Domain/User/UserOauthRedirectTest.php:329 | |
325▕ $this->deleteJson(route('passport.authorizations.authorize', [ | |
326▕ 'client_id' => $client->id, | |
327▕ 'auth_token' => $authorizeResponse['authToken'], | |
328▕ 'state' => $authorizeResponse['state'], | |
➜ 329▕ ]))->assertStatus(Response::HTTP_NO_CONTENT); | |
330▕ } | |
331▕ } | |
332▕ | |
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
FAILED Tests\Unit\Domain\Export\ExportGoodsInListTest > export goods in list successfully AssertionFailedError | |
The response is not a streamed response. | |
at tests/Unit/Domain/Export/ExportGoodsInListTest.php:46 | |
42▕ $res = $this->get(route('export.list', [ | |
43▕ 'entity_type' => ExportListEntityTypeEnum::GOODS_IN_LIST, | |
44▕ 'ids' => [$goodsIn->id], | |
45▕ ])); | |
➜ 46▕ $content = $res->streamedContent(); | |
47▕ $res->assertOk() | |
48▕ ->assertHeader('Content-Type', 'text/csv; charset=UTF-8') | |
49▕ ->assertDownload(); | |
50▕ } | |
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
FAILED Tests\Unit\Domain\Export\ExportParticipantHandoversListTest > export participant handovers list successfully AssertionFailedError | |
The response is not a streamed response. | |
at tests/Unit/Domain/Export/ExportParticipantHandoversListTest.php:80 | |
76▕ 'entity_type' => ExportListEntityTypeEnum::PARTICIPANT_HANDOVERS_LIST, | |
77▕ 'participant_id' => $participant->id, | |
78▕ 'ids' => [$handover->id], | |
79▕ ])); | |
➜ 80▕ $content = $res->streamedContent(); | |
81▕ $res->assertOk() | |
82▕ ->assertHeader('Content-Type', 'text/csv; charset=UTF-8') | |
83▕ ->assertDownload(); | |
84▕ } | |
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
FAILED Tests\Unit\Domain\Export\ExportDispensaryNartocitcYearlyReportTest > export dispensary narcotics yearly report successfully AssertionFailedError | |
The response is not a streamed response. | |
at tests/Unit/Domain/Export/ExportDispensaryNartocitcYearlyReportTest.php:47 | |
43▕ $res = $this->get(route('export.list', [ | |
44▕ 'entity_type' => ExportListEntityTypeEnum::DISPENSARY_NARCOTIC_YEARLY_REPORT, | |
45▕ 'ids' => DispensaryProduct::where('dispensary_id', $dispensary->id)->pluck('id')->toArray(), | |
46▕ ])); | |
➜ 47▕ $content = $res->streamedContent(); | |
48▕ $res->assertOk() | |
49▕ ->assertHeader('Content-Type', 'text/csv; charset=UTF-8') | |
50▕ ->assertDownload(); | |
51▕ } | |
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
FAILED Tests\Unit\Domain\Export\ExportGoodsInLogListTest > export goods in log list successfully AssertionFailedError | |
The response is not a streamed response. | |
at tests/Unit/Domain/Export/ExportGoodsInLogListTest.php:49 | |
45▕ $res = $this->get(route('export.list', [ | |
46▕ 'entity_type' => ExportListEntityTypeEnum::GOODS_IN_LOG, | |
47▕ 'ids' => $goodsInProduct->goodsInProductBatches()->pluck('id')->toArray(), | |
48▕ ])); | |
➜ 49▕ $content = $res->streamedContent(); | |
50▕ $res->assertOk() | |
51▕ ->assertHeader('Content-Type', 'text/csv; charset=UTF-8') | |
52▕ ->assertDownload(); | |
53▕ } | |
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
FAILED Tests\Unit\Domain\Export\ExportParticipantListTest > export participant list successfully AssertionFailedError | |
The response is not a streamed response. | |
at tests/Unit/Domain/Export/ExportParticipantListTest.php:42 | |
38▕ $res = $this->get(route('export.list', [ | |
39▕ 'entity_type' => ExportListEntityTypeEnum::PARTICIPANTS_LIST, | |
40▕ 'ids' => $participants->pluck('id')->toArray(), | |
41▕ ])); | |
➜ 42▕ $content = $res->streamedContent(); | |
43▕ $res->assertOk() | |
44▕ ->assertHeader('Content-Type', 'text/csv; charset=UTF-8') | |
45▕ ->assertDownload(); | |
46▕ } | |
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
FAILED Tests\Unit\Domain\Export\ExportHandoversListTest > export participant handovers list successfully AssertionFailedError | |
The response is not a streamed response. | |
at tests/Unit/Domain/Export/ExportHandoversListTest.php:72 | |
68▕ $res = $this->get(route('export.list', [ | |
69▕ 'entity_type' => ExportListEntityTypeEnum::HANDOVERS_LIST, | |
70▕ 'ids' => [$handover->id], | |
71▕ ])); | |
➜ 72▕ $content = $res->streamedContent(); | |
73▕ $res->assertOk() | |
74▕ ->assertHeader('Content-Type', 'text/csv; charset=UTF-8') | |
75▕ ->assertDownload(); | |
76▕ } | |
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
FAILED Tests\Unit\Domain\Export\ExportProjectListTest > export project list successfully AssertionFailedError | |
The response is not a streamed response. | |
at tests/Unit/Domain/Export/ExportProjectListTest.php:30 | |
26▕ $res = $this->get(route('export.list', [ | |
27▕ 'entity_type' => ExportListEntityTypeEnum::PROJECT_LIST, | |
28▕ 'ids' => $projects->pluck('id')->toArray(), | |
29▕ ])); | |
➜ 30▕ $content = $res->streamedContent(); | |
31▕ $res->assertOk() | |
32▕ ->assertHeader('Content-Type', 'text/csv; charset=UTF-8') | |
33▕ ->assertDownload(); | |
34▕ } | |
Tests: 23 failed, 5 risky, 421 passed (10599 assertions) | |
Duration: 49.19s | |
Parallel: 8 processes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment