Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
12bit simple plugin
<?php
/**
* Class FunctionsTest
*
* @package 12bit_Simple_Plugin
*/
/**
* Sample test case.
*/
class FunctionsTest extends WP_UnitTestCase {
function setUp() {
$this->class_instance = new Simple_Plugin_12Bit();
}
/**
* A single example test.
*/
function test_get_author_name() {
$this->class_instance->set_author_name( '12bit.vn' );
$author_name = $this->class_instance->get_author_name();
$this->assertEquals( $author_name, '12bit.vn' );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.