41 lines
1.2 KiB
PHP
41 lines
1.2 KiB
PHP
|
|
<?php
|
||
|
|
// This file is auto-generated by alef — DO NOT EDIT.
|
||
|
|
// alef:hash:4e15143f4af1ae8bafbdb1506ef057da924484c66a19483966333558ad437e75
|
||
|
|
// To regenerate: alef generate
|
||
|
|
// To verify freshness: alef verify --exit-code
|
||
|
|
// Issues & docs: https://github.com/kreuzberg-dev/alef
|
||
|
|
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace Kreuzberg\E2e;
|
||
|
|
|
||
|
|
use PHPUnit\Framework\TestCase;
|
||
|
|
use Kreuzberg\Kreuzberg;
|
||
|
|
use Kreuzberg\ExtractionConfig;
|
||
|
|
|
||
|
|
/** E2e tests for category: document_extractor_management. */
|
||
|
|
final class DocumentExtractorManagementTest extends TestCase
|
||
|
|
{
|
||
|
|
|
||
|
|
/** Clear all document extractors and verify list is empty */
|
||
|
|
public function test_document_extractors_clear(): void
|
||
|
|
{
|
||
|
|
$this->expectNotToPerformAssertions();
|
||
|
|
$result = Kreuzberg::clearDocumentExtractors();
|
||
|
|
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/** List all registered document extractors */
|
||
|
|
public function test_extractors_list(): void
|
||
|
|
{
|
||
|
|
$this->expectNotToPerformAssertions();
|
||
|
|
$result = Kreuzberg::listDocumentExtractors(["setup" => ["lazy_init_required" => ["init_action" => "extract_file_sync", "init_data" => ["create_temp_file" => true, "temp_file_content" => "%PDF-1.4\n%EOF\n", "temp_file_name" => "test.pdf"], "languages" => ["go"]]]]);
|
||
|
|
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|