Skip to content

Commit 94790b7

Browse files
committed
style(ai-bundle): apply php-cs-fixer on AiBundleTest.php
1 parent 44f6b07 commit 94790b7

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

src/ai-bundle/tests/DependencyInjection/AiBundleTest.php

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2793,6 +2793,30 @@ public function testVectorizerModelBooleanOptionsArePreserved()
27932793
$this->assertSame('text-embedding-3-small?normalize=false&cache=true&nested%5Bbool%5D=false', $vectorizerDefinition->getArgument(1));
27942794
}
27952795

2796+
#[TestDox('Meilisearch store with custom semantic_ratio can be configured')]
2797+
public function testMeilisearchStoreWithCustomSemanticRatioCanBeConfigured()
2798+
{
2799+
$container = $this->buildContainer([
2800+
'ai' => [
2801+
'store' => [
2802+
'meilisearch' => [
2803+
'test_store' => [
2804+
'endpoint' => 'http://127.0.0.1:7700',
2805+
'api_key' => 'test_key',
2806+
'index_name' => 'test_index',
2807+
'semantic_ratio' => 0.5,
2808+
],
2809+
],
2810+
],
2811+
],
2812+
]);
2813+
2814+
$this->assertTrue($container->hasDefinition('ai.store.meilisearch.test_store'));
2815+
$definition = $container->getDefinition('ai.store.meilisearch.test_store');
2816+
$arguments = $definition->getArguments();
2817+
$this->assertSame(0.5, $arguments[7]);
2818+
}
2819+
27962820
private function buildContainer(array $configuration): ContainerBuilder
27972821
{
27982822
$container = new ContainerBuilder();
@@ -3153,28 +3177,4 @@ private function getFullConfig(): array
31533177
],
31543178
];
31553179
}
3156-
3157-
#[TestDox('Meilisearch store with custom semantic_ratio can be configured')]
3158-
public function testMeilisearchStoreWithCustomSemanticRatioCanBeConfigured()
3159-
{
3160-
$container = $this->buildContainer([
3161-
'ai' => [
3162-
'store' => [
3163-
'meilisearch' => [
3164-
'test_store' => [
3165-
'endpoint' => 'http://127.0.0.1:7700',
3166-
'api_key' => 'test_key',
3167-
'index_name' => 'test_index',
3168-
'semantic_ratio' => 0.5,
3169-
],
3170-
],
3171-
],
3172-
],
3173-
]);
3174-
3175-
$this->assertTrue($container->hasDefinition('ai.store.meilisearch.test_store'));
3176-
$definition = $container->getDefinition('ai.store.meilisearch.test_store');
3177-
$arguments = $definition->getArguments();
3178-
$this->assertSame(0.5, $arguments[7]);
3179-
}
31803180
}

0 commit comments

Comments
 (0)