Skip to content

Commit af960c6

Browse files
committed
test: client
1 parent f43e14c commit af960c6

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

tests/Feature/ClientTest.php

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
3+
namespace Feature;
4+
5+
use Tests\TestCase;
6+
use Typesense\Collections;
7+
use Typesense\Stopwords;
8+
use Typesense\Aliases;
9+
use Typesense\Keys;
10+
use Typesense\Debug;
11+
use Typesense\Metrics;
12+
use Typesense\Health;
13+
use Typesense\Operations;
14+
use Typesense\MultiSearch;
15+
use Typesense\Presets;
16+
use Typesense\Analytics;
17+
18+
class ClientTest extends TestCase
19+
{
20+
public function testCanCreateAClient(): void
21+
{
22+
$this->assertInstanceOf(Collections::class, $this->client()->collections);
23+
$this->assertInstanceOf(Stopwords::class, $this->client()->stopwords);
24+
$this->assertInstanceOf(Aliases::class, $this->client()->aliases);
25+
$this->assertInstanceOf(Keys::class, $this->client()->keys);
26+
$this->assertInstanceOf(Debug::class, $this->client()->debug);
27+
$this->assertInstanceOf(Metrics::class, $this->client()->metrics);
28+
$this->assertInstanceOf(Health::class, $this->client()->health);
29+
$this->assertInstanceOf(Operations::class, $this->client()->operations);
30+
$this->assertInstanceOf(MultiSearch::class, $this->client()->multiSearch);
31+
$this->assertInstanceOf(Presets::class, $this->client()->presets);
32+
$this->assertInstanceOf(Analytics::class, $this->client()->analytics);
33+
}
34+
}

0 commit comments

Comments
 (0)