This commit is contained in:
40
e2e/php/tests/DocumentExtractorManagementTest.php
generated
Normal file
40
e2e/php/tests/DocumentExtractorManagementTest.php
generated
Normal file
@@ -0,0 +1,40 @@
|
||||
<?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"]]]]);
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user