Skip to content
Snippets Groups Projects
Commit 06ba55d6 authored by Marcin Kolanko's avatar Marcin Kolanko
Browse files

fix: tests

parent c4190ea6
No related branches found
No related tags found
No related merge requests found
Pipeline #507713 passed with warnings
......@@ -12,13 +12,13 @@ class AjaxHandlerTest extends WPTestCase {
const NOTICE_NAME = 'test_notice_name';
const WP_DEFAULT_PRIORITY = 10;
public function setUp() {
public function setUp(): void {
parent::setUp();
add_filter( 'wp_doing_ajax', '__return_true' );
add_filter( 'wp_die_ajax_handler', array( $this, 'getDieHandler' ), 1, 1 );
}
public function tearDown() {
public function tearDown(): void {
parent::tearDown();
}
......
......@@ -11,11 +11,11 @@ use \WPDesk\Notice\PermanentDismissibleNotice;
*/
class FunctionsTest extends WPTestCase {
public function setUp() {
public function setUp():void {
parent::setUp();
}
public function tearDown() {
public function tearDown():void {
parent::tearDown();
}
......
......@@ -7,11 +7,11 @@ use \WPDesk\Notice\Notice;
class NoticeTest extends WPTestCase {
public function setUp() {
public function setUp():void {
parent::setUp();
}
public function tearDown() {
public function tearDown():void {
parent::tearDown();
}
......
......@@ -9,11 +9,11 @@ class PermanentDismissinleNoticeTest extends WPTestCase {
const NOTICE_NAME = 'test_notice_name';
public function setUp() {
public function setUp():void {
parent::setUp();
}
public function tearDown() {
public function tearDown():void {
parent::tearDown();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment