equal
deleted
inserted
replaced
65 } ] |
65 } ] |
66 } |
66 } |
67 } |
67 } |
68 }', true)); |
68 }', true)); |
69 |
69 |
70 $this->get('/api/v1/stats/discourses/')->assertTrue($this->response->isOk(), $this->response->content()); |
70 $response = $this->get('/api/v1/stats/discourses/'); |
71 |
71 |
72 $this->seeJsonEquals(["discourses" => [ |
72 $response |
|
73 ->assertStatus(200) |
|
74 ->assertJson(["discourses" => [ |
73 "http://ark.bnf.fr/ark:/12148/cb12083158d" => ["label" => "argumentation", "count" => 44], |
75 "http://ark.bnf.fr/ark:/12148/cb12083158d" => ["label" => "argumentation", "count" => 44], |
74 "http://ark.bnf.fr/ark:/12148/cb119783362" => ["label" => "bavardage", "count" => 33], |
76 "http://ark.bnf.fr/ark:/12148/cb119783362" => ["label" => "bavardage", "count" => 33], |
75 "http://ark.bnf.fr/ark:/12148/cb13319048g" => ["label" => "chansons", "count" => 22], |
77 "http://ark.bnf.fr/ark:/12148/cb13319048g" => ["label" => "chansons", "count" => 22], |
76 ]]); |
78 ]]); |
77 |
79 |
100 "sum_other_doc_count" : 0, |
102 "sum_other_doc_count" : 0, |
101 "buckets" : [ ] |
103 "buckets" : [ ] |
102 } |
104 } |
103 } |
105 } |
104 }', true)); |
106 }', true)); |
105 $this->get('/api/v1/stats/discourses/')->assertTrue($this->response->isOk(), $this->response->content()); |
107 $response = $this->get('/api/v1/stats/discourses/'); |
106 $this->seeJsonEquals(["discourses" => [ |
108 $response |
|
109 ->assertStatus(200) |
|
110 ->assertJson(["discourses" => [ |
107 ]]); |
111 ]]); |
108 } |
112 } |
109 } |
113 } |