0
I’m doing it this way, but it makes a mistake:
public function test_get_list_without_criteria() {
$data = ["specialist_name" => "o especialista"];
$data2 = ["specialist_name" => "o especialista 2"];
$data3 = ["specialist_name" => "o especialista 3"];
$res = $this->specialists_model->insert($data);
$res2 = $this->specialists_model->insert($data2);
$res3 = $this->specialists_model->insert($data3);
$subset = new \ArrayObject();
$specialist = new \App\Entity\SpecialistEntity($data);
$specialist2 = new \App\Entity\SpecialistEntity($data2);
$specialist3 = new \App\Entity\SpecialistEntity($data3);
$subset->append($specialist);
$subset->append($specialist2);
$subset->append($specialist3);
$list = $this->specialists_model->getList();
$this->assertArraySubset($subset, $list);
}