Code Monkey home page Code Monkey logo

Comments (11)

lucatume avatar lucatume commented on June 12, 2024 1

I've just scaffolded a test with latest wp-browser with no errors.
The Codeception\TestCase\Test class has been deprecated in Codeception 2.2 but it's still shimmed so it should not throw errors.
I'm sending up a small fix to make WPTestCase extend it instead.

from wp-browser.

wblessen avatar wblessen commented on June 12, 2024 1

Here again with the same Error.

Note to future self:

Replace the Class with \Codeception\Test\Unit

from wp-browser.

lucatume avatar lucatume commented on June 12, 2024

The missing class comes from Codeception so the issue is that Codeception class not being found. What version of WPBrowser and Codeception are you using?

from wp-browser.

rahularyan avatar rahularyan commented on June 12, 2024

wp-browser ~1.13
codeception 2.2

I am trying now with older version of codeception 1.9

from wp-browser.

lucatume avatar lucatume commented on June 12, 2024

I will try your config to see what I might have broken.

from wp-browser.

rahularyan avatar rahularyan commented on June 12, 2024

Thanks.
I tried with older version but same error. Please see here:
https://travis-ci.org/anspress/anspress/jobs/135805273

from wp-browser.

rahularyan avatar rahularyan commented on June 12, 2024

May be there is some issue with codeception.phar? I tried to get 2.1.9 but it shows 2.2.1:

wget http://codeception.com/releases/2.1.9/codecept.phar
$ codecept -V
Codeception version 2.2.1

I think this should show 2.1.9?

from wp-browser.

rahularyan avatar rahularyan commented on June 12, 2024

Thanks, that would be awesome.

from wp-browser.

rahularyan avatar rahularyan commented on June 12, 2024

Latest commit solves the issue. Thanks a lot for quick action.

from wp-browser.

lucatume avatar lucatume commented on June 12, 2024

Thanks to you for pointing it out!

Keep up the good work and have a great day.

from wp-browser.

wblessen avatar wblessen commented on June 12, 2024

I've just scaffolded a test with latest wp-browser with no errors. The Codeception\TestCase\Test class has been deprecated in Codeception 2.2 but it's still shimmed so it should not throw errors. I'm sending up a small fix to make WPTestCase extend it instead.

Which Class should be used instead?

from wp-browser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.