Visitar URL original
Broken with cakephp 3.6 · Issue #47 · cakephp/codeception · GitHub
Skip to content
This repository was archived by the owner on Feb 20, 2023. It is now read-only.
This repository was archived by the owner on Feb 20, 2023. It is now read-only.

Broken with cakephp 3.6 #47

Description

@icex

I recently upgraded to cake 3.6 and all my tests are broken.

  • Routes are not loaded at runtime, amOnRoute cannot be used(nothing is found). [Cake\Routing\Exception\MissingRouteException] A route matching "array (...
  • Router::reload(); in reloadRoutes can result in 'duplicate routes' errors. see Plugin routes config files are included twice app#593
  • Lots of deprecated errors. Event::$data is deprecated. Use Event::getData() instead. eventManager() is deprecated. Use getEventManager()/setEventManager() instead. etc..

Activity

  1. lorenzo commented on Aug 17, 2018

    @lorenzo
    Member

    Would you like to send a pull request with the fix for this issue?

  2. icex commented on Aug 17, 2018

    @icex
    Author

    Hi, working on it :)

  3. dereuromark commented on Aug 17, 2018

    @dereuromark
    Member

    Also note that "Lots of deprecated errors" doesnt mean broken. It can and should then just be silenced.
    It is good to support more than just the latest minor if possible here anyway.
    Only force ^3.6 as dependency here if really necessary and one is forced to use a new method that is only available in this new minor.

  4. lorenzo commented on Aug 17, 2018

    @lorenzo
    Member

    @icex Thanks so much!

  5. icex commented on Aug 20, 2018

    @icex
    Author

    I have got it working on my branch (only for the latest version of cake, it should be 4.x ready)
    https://github.com/icex/codeception

    I'll submit a PR after more testing and add back support for older versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions