Codeception / Codeception/module-symfony
Backwards compatibility break in `RouterAssertionsTrait::seeCurrentRouteIs()`
- Ngôn ngữ chính
- PHP
- Star
- 96
- Fork
- 25
- Merge trung bình
- 2 giờ 35 phút
- Pull request đã merge (30 ngày)
- 3
Mô tả
https://github.com/Codeception/module-symfony/pull/227 broke backwards compatibility with tests written for prior versions of the module.
The following test now fails:
```php
$I->seeCurrentRouteIs('some_route', [
'id' => 1,
]);
```
With:
```
- Expected | + Actual
@@ @@
Array &0 [
'_route' => 'some_route',
- 'id' => 1,
+ 'id' => '1',
]
```
This usage is even how the method is documented:
https://github.com/Codeception/module-symfony/blob/01cfa3e12917e396cf99cee1fb63a553865cad16/src/Codeception/Module/Symfony/RouterAssertionsTrait.php#L87
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu trong src/Codeception/Module/Symfony/RouterAssertionsTrait.php tại seeCurrentRouteIs(), và so sánh hành vi được giới thiệu bởi pull request #227. Tái hiện lệnh gọi được ghi trong tài liệu với một id số nguyên, sau đó thêm hoặc cập nhật một bài kiểm thử hồi quy nếu bộ kiểm thử hiện có đã bao phủ assertion này. Hoàn tất khi các lệnh gọi trước đó vẫn tiếp tục so sánh các tham số route dạng số nguyên mà không chuyển chúng thành chuỗi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- php, symfony
- Lĩnh vực
- backend, testing
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 68/100