Select Git revision
TestFunctions.php
-
Grzegorz Rola authoredGrzegorz Rola authored
TestFunctions.php 648 B
<?php
use \WPDesk\Notice\Notice;
use \WPDesk\Notice\PermanentDismissibleNotice;
/**
* Class TestFunctions
*/
class TestFunctions extends WP_UnitTestCase
{
/**
* Test WPDeskNotice function.
*/
public function testWPDeskNotice()
{
$notice = wpdesk_notice('test');
$this->assertInstanceOf(Notice::class, $notice);
}
/**
* Test WPDeskPermanentDismissibleNotice function.
*/
public function testWPDeskPermanentDismissibleNotice()
{
$notice = wpdesk_permanent_dismissible_notice('test');
$this->assertInstanceOf(PermanentDismissibleNotice::class, $notice);
}
}