Instantly share code, notes, and snippets.

Embed
What would you like to do?
ぺちぱな用サンプルテストコード
<?php
/**
* Class SampleTest
*
* @package Sample_Plugin
*/
/**
* Sample test case.
*/
class SampleTest extends WP_UnitTestCase {
/**
* A single example test.
*/
function test_sample() {
// Replace this with some actual testing code.
$this->assertTrue( true );
}
function test_the_content() {
$this->assertEquals( 'ぺちぱな', do_shortcode( '[phperna]' ) );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment