changes, global search (clients, cleintCases)

This commit is contained in:
Simon Pocrnjič
2024-11-19 12:49:16 +01:00
parent c45751c1e2
commit 3ae70bf340
37 changed files with 1888 additions and 229 deletions
+28
View File
@@ -0,0 +1,28 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Tests\TestCase;
class AlgoliaSearchTest extends TestCase
{
/**
* A basic feature test example.
*/
public function test_example(): void
{
$client = \Algolia\AlgoliaSearch\SearchClient::create('ZDAXR87LZV','8797318d18e10541ad15d49ae1e64db2');
$index = $client->initIndex('myposts_index');
$index->saveObject([
'objectID' => 1,
'name' => 'Test record'
]);
//$response->assertStatus(200);
}
}