Skip to content

Commit

Permalink
fix: test case setUp
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhooks committed Apr 2, 2023
1 parent 5103523 commit d529af7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions tests/phpunit/tests/test-activator.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
class Test_WP_Notify_Activator extends WP_Notify_TestCase {
/**
* Call this template method before each test method is run.
*
* return void
*/
public function setUp() {
protected function setUp(): void {
global $wpdb;

$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'notifications_messages' );
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/test-uninstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Test_WP_Notify_Uninstaller extends WP_Notify_TestCase {
/**
* Install the tables before each test method is run.
*/
public function setUp() {
protected function setUp(): void {
Activator::install();
}

Expand Down

0 comments on commit d529af7

Please sign in to comment.