mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-06 21:54:28 +00:00
Unit Tests: WP_UnitTest_Generator_Sequence needs a static incrementer - otherwise, it assumes every test class is a reset, which it no longer is (it is now static).
While we're at it, remove unnecessary `tearDown()` code. See #30017, #33968. git-svn-id: https://develop.svn.wordpress.org/trunk@35244 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -5,21 +5,6 @@
|
||||
* @group testsuite
|
||||
*/
|
||||
class Tests_Basic extends WP_UnitTestCase {
|
||||
var $val;
|
||||
|
||||
function setUp() {
|
||||
parent::setUp();
|
||||
$this->val = true;
|
||||
}
|
||||
|
||||
function tearDown() {
|
||||
$this->val = false;
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
function test_true() {
|
||||
$this->assertTrue($this->val);
|
||||
}
|
||||
|
||||
function test_license() {
|
||||
$license = file_get_contents( ABSPATH . 'license.txt' );
|
||||
|
||||
Reference in New Issue
Block a user