Comments (11)
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.
Here again with the same Error.
Note to future self:
Replace the Class with \Codeception\Test\Unit
from wp-browser.
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.
wp-browser ~1.13
codeception 2.2
I am trying now with older version of codeception 1.9
from wp-browser.
I will try your config to see what I might have broken.
from wp-browser.
Thanks.
I tried with older version but same error. Please see here:
https://travis-ci.org/anspress/anspress/jobs/135805273
from wp-browser.
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.
Thanks, that would be awesome.
from wp-browser.
Latest commit solves the issue. Thanks a lot for quick action.
from wp-browser.
Thanks to you for pointing it out!
Keep up the good work and have a great day.
from wp-browser.
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 makeWPTestCase
extend it instead.
Which Class should be used instead?
from wp-browser.
Related Issues (20)
- [BUG] Git Hub Pages are Down? HOT 1
- [BUG] "Could not find a WordPress installation" error when initialising a plugin HOT 1
- [BUG] `amEditingUserWithId()` method missing from v4 HOT 1
- [BUG] Ajax tests fail HOT 2
- [BUG] Tests fail when being run from phpstorm HOT 3
- https://wpbrowser.wptestkit.dev/ not working HOT 1
- [FEATURE REQUEST] Add (grab|see)TransientInDatabase methods to WPDb
- [BUG] v4 doesn't like database names with periods in them HOT 1
- [DOC REQUEST] Test examples HOT 4
- [BUG] Can't access WP built-in functions even when using WPLoader HOT 14
- [BUG] Empty < Invalid database name: > when trying to add WPLoader HOT 2
- [BUG] v4 uses `__wakeup`, which many plugins have overridden with an error. HOT 3
- [BUG] WPLoader doesn't load wordpress installation HOT 11
- [DOC REQUEST] Setup issues HOT 4
- [BUG] Warnings while running tests HOT 1
- [SETUP ISSUE] failed activation, invalid Chrome binary HOT 4
- [FEATURE REQUEST] Integrate with ACF HOT 3
- [SETUP ISSUE] Teardown error — $wpdb is null HOT 5
- [FEATURE REQUEST] Lock WordPress to Specific Version HOT 4
- [BUG] race conditions & bugs due to connecting twice to database with WPTestCase and WPLoader | v3 HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp-browser.