toBe(200); }); test('post employees tesztelése', function () { $url = 'http://localhost:5500/employees'; $post_data = [ 'name' => 'Valaki', 'city' => 'Valahol', 'salary' => 500 ]; $http_status = make_request($url, 'POST', $post_data); expect($http_status)->toBe(200); }); test('put employees tesztelése', function () { $url = 'http://localhost:5500/employees/0'; $post_data = [ 'name' => 'Másvalaki', 'city' => 'Máshol', 'salary' => 352 ]; $http_status = make_request($url, 'PUT', $post_data); expect($http_status)->toBe(200); }); test('delete employees tesztelése', function () { $url = 'http://localhost:5500/employees/0'; $http_status = make_request($url, 'DELETE'); expect($http_status)->toBe(200); });