File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments