server/src/tests/Controllers/LanguageControllerTest.php
changeset 537 d2e6ee099125
parent 407 2dba812c7ef2
equal deleted inserted replaced
536:b64c8c35c67d 537:d2e6ee099125
    68             }]
    68             }]
    69         }
    69         }
    70     }
    70     }
    71 }', true));
    71 }', true));
    72 
    72 
    73         $response = $this->get('/api/v1/stats/languages/')->assertTrue($this->response->isOk(), $this->response->content());
    73         $response = $this->get('/api/v1/stats/languages/');
    74         $this->seeJsonEquals(['languages' => [
    74         $response
       
    75             ->assertStatus(200)
       
    76             ->assertJson(['languages' => [
    75                 'http://lexvo.org/id/iso639-3/fra' => 1669,
    77                 'http://lexvo.org/id/iso639-3/fra' => 1669,
    76                 'http://lexvo.org/id/iso639-3/gsw' => 851,
    78                 'http://lexvo.org/id/iso639-3/gsw' => 851,
    77                 'http://lexvo.org/id/iso639-3/bre' => 403,
    79                 'http://lexvo.org/id/iso639-3/bre' => 403,
    78             ]]);
    80             ]]);
    79     }
    81     }