File tree 1 file changed +25
-0
lines changed 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,31 @@ public function testDeleteIndex()
91
91
$ this ->assertCount (0 , $ response );
92
92
}
93
93
94
+ public function testDeleteAllIndexes ()
95
+ {
96
+ $ this ->client ->createIndex ('index-1 ' );
97
+ $ this ->client ->createIndex ('index-2 ' );
98
+
99
+ $ response = $ this ->client ->getAllIndexes ();
100
+
101
+ $ this ->assertCount (2 , $ response );
102
+
103
+ $ this ->client ->deleteAllIndexes ();
104
+ $ response = $ this ->client ->getAllIndexes ();
105
+
106
+ $ this ->assertCount (0 , $ response );
107
+ }
108
+
109
+ public function testDeleteAllIndexesWhenThereAreNoIndexes ()
110
+ {
111
+ $ response = $ this ->client ->getAllIndexes ();
112
+ $ this ->assertCount (0 , $ response );
113
+
114
+ $ this ->client ->deleteAllIndexes ();
115
+
116
+ $ this ->assertCount (0 , $ response );
117
+ }
118
+
94
119
public function testGetIndex ()
95
120
{
96
121
$ this ->client ->createIndex ('index ' );
You can’t perform that action at this time.
0 commit comments