Skip to content

Commit 1e98b56

Browse files
committed
test: operations
1 parent 478c6a0 commit 1e98b56

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

tests/Feature/OperationsTest.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
namespace Feature;
4+
5+
use Tests\TestCase;
6+
7+
class OperationsTest extends TestCase
8+
{
9+
10+
public function testCanCreateSnapshot(): void
11+
{
12+
$returnData = $this->client()->operations->perform("snapshot", ["snapshot_path" => "/tmp/typesense-data-snapshot"]);
13+
$this->assertIsBool($returnData['success']);
14+
}
15+
16+
public function testCanReElectLeader(): void
17+
{
18+
$returnData = $this->client()->operations->perform("vote");
19+
$this->assertIsBool($returnData['success']);
20+
}
21+
}

0 commit comments

Comments
 (0)