You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
819 B
30 lines
819 B
<?php
|
|
|
|
namespace Tests\Feature;
|
|
|
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
|
use Illuminate\Foundation\Testing\WithFaker;
|
|
use Illuminate\Support\Facades\Storage;
|
|
use Tests\TestCase;
|
|
|
|
class IngestDocxTest extends TestCase
|
|
{
|
|
/** @test */
|
|
public function it_ingests_a_good_docx_file()
|
|
{
|
|
try {
|
|
$payload = $this->postJson('/word', [
|
|
'document' => new \Illuminate\Http\UploadedFile(
|
|
storage_path('app/public/ContractING.odt'),
|
|
'ContractING good.docx',
|
|
'application/msword',
|
|
null,
|
|
null,
|
|
true
|
|
),
|
|
])->decodeResponseJson();
|
|
} catch (\Exception $exception) {
|
|
dd($exception->getMessage());
|
|
}
|
|
}
|
|
}
|