Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function testSavingAndSaved() |
||
16 | { |
||
17 | $model = new EventableModel(); |
||
18 | $model->id = 1; |
||
19 | $model->save(); |
||
20 | |||
21 | $path = $model->getPath()->toArray(); |
||
22 | $res = $this->es->get($path); |
||
23 | |||
24 | $this->assertEquals(100500, $res['_source']['price']); |
||
25 | $this->assertEquals(1050, $model->price); |
||
26 | } |
||
27 | |||
49 |