FabSoftUnicentro / e-DefPR

Software para Controle de Processos - Defensoria Pública do Paraná
MIT License
5 stars 1 forks source link

Corrigir teste de unidade CityIndex #459

Closed dav3sk closed 6 years ago

dav3sk commented 6 years ago

Pode ocorrer esse erro ao fim do teste: There was 1 failure:

1) Tests\Feature\City\IndexTest::testIndexWithoutPagination Unable to find JSON:

[{ "data": [ { "id": 1, "state_id": "1", "name": "Hort\u00eancia d'Oeste" }, { "id": 2, "state_id": "2", "name": "Daniel do Leste" } ] }]

within response JSON:

[{ "data": [ { "id": 2, "state_id": "2", "name": "Daniel do Leste" }, { "id": 1, "state_id": "1", "name": "Hort\u00eancia d'Oeste" } ] }].

Failed asserting that an array has the subset Array &0 ( 'data' => Array &1 ( 0 => Array &2 ( 'id' => 1 'state_id' => '1' 'name' => 'Hortência d'Oeste' ) 1 => Array &3 ( 'id' => 2 'state_id' => '2' 'name' => 'Daniel do Leste' ) ) ). --- Expected +++ Actual @@ @@ array ( 0 => array (

D:\e-DefPR\e-DefPR\backend\vendor\laravel\framework\src\Illuminate\Foundation\Testing\TestResponse.php:425 D:\e-DefPR\e-DefPR\backend\tests\CreatesApplication.php:22 D:\e-DefPR\e-DefPR\backend\vendor\laravel\framework\src\Illuminate\Support\Traits\Macroable.php:108 D:\e-DefPR\e-DefPR\backend\vendor\laravel\framework\src\Illuminate\Foundation\Testing\TestResponse.php:1054 D:\e-DefPR\e-DefPR\backend\tests\Feature\City\IndexTest.php:54