Codeception / module-yii2

Codeception module for Yii2 framework
MIT License
16 stars 36 forks source link

Wrong documentation for `amOnPage()` #81

Closed mytskine closed 1 year ago

mytskine commented 1 year ago

The amOnPage() method used to accept both a path (e.g. /that/3) and a route (e.g. ["/that/view", "id" => 3]). This feature was removed, and the present method is not backward compatible. In fact, one can't use a full route anymore, except by splitting it into amOnRoute() (so upgrading an old test suite is painful). The problem is that the phpdoc was not updated:

     * @param string|array $page the URI or route in array format
     */
    public function amOnPage(string $page): void
samdark commented 1 year ago

Fixed by #86