-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4997d16
commit b104ee6
Showing
6 changed files
with
166 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
/** | ||
* Class Admin_Notice Test. | ||
* | ||
* @package Translation_Stats | ||
*/ | ||
|
||
Use Translation_Stats\Admin_Notice; | ||
|
||
|
||
/** | ||
* Admin_Notice test case. | ||
*/ | ||
class Test_Admin_Notice extends WP_UnitTestCase { | ||
|
||
/** | ||
* Test display formatted admin notice. | ||
*/ | ||
public function test_message() { | ||
|
||
$admin_notice = array( | ||
'type' => 'error', | ||
'notice-alt' => true, | ||
'message' => 'Translation project not found on WordPress.org', | ||
); | ||
$admin_notice = new Admin_Notice( $admin_notice ); | ||
|
||
echo "\nAdmin Notice:\n"; | ||
var_dump( $admin_notice ); | ||
|
||
$this->assertIsObject( $admin_notice ); | ||
|
||
} | ||
|
||
} |