File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 3
3
namespace Limenet \LaravelElasticaBridge \Tests ;
4
4
5
5
use Elastica \Index ;
6
+ use Limenet \LaravelElasticaBridge \Exception \Index \BlueGreenIndicesIncorrectlySetupException ;
7
+ use Limenet \LaravelElasticaBridge \Index \IndexInterface ;
6
8
use Limenet \LaravelElasticaBridge \Tests \App \Elasticsearch \CustomerIndex ;
7
9
use Limenet \LaravelElasticaBridge \Tests \App \Models \Customer ;
8
10
use RuntimeException ;
@@ -59,4 +61,11 @@ public function empty_document_to_model()
59
61
$ this ->expectException (RuntimeException::class);
60
62
$ this ->customerIndex ->getModelInstance ($ document );
61
63
}
64
+ /** @test */
65
+ public function blue_green ()
66
+ {
67
+ $ this ->assertFalse ($ this ->customerIndex ->hasBlueGreenIndices ());
68
+ $ this ->expectException (BlueGreenIndicesIncorrectlySetupException::class);
69
+ $ this ->customerIndex ->getBlueGreenActiveElasticaIndex ();
70
+ }
62
71
}
You can’t perform that action at this time.
0 commit comments