mirror of
https://github.com/KevinMidboe/rohnenedre.git
synced 2025-10-29 17:50:37 +00:00
Initial commit. State 04.2021.
This commit is contained in:
43
wp-content/plugins/wpclef/tests/test_clef_tests.php
Normal file
43
wp-content/plugins/wpclef/tests/test_clef_tests.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Tests to test that that testing framework is testing tests. Meta, huh?
|
||||
*
|
||||
* @package wordpress-plugins-tests
|
||||
*/
|
||||
class WP_Test_Clef_Tests extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* Run a simple test to ensure that the tests are running
|
||||
*/
|
||||
function test_tests() {
|
||||
|
||||
$this->assertTrue( true );
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* If these tests are being run on Travis CI, verify that the version of
|
||||
* WordPress installed is the version that we requested.
|
||||
*/
|
||||
function test_wp_version() {
|
||||
|
||||
// if ( !getenv( 'TRAVIS_PHP_VERSION' ) )
|
||||
// $this->markTestSkipped( 'Test skipped since Travis CI was not detected.' );
|
||||
|
||||
// //grab the requested version
|
||||
// $requested_version = getenv( 'WP_VERSION' );
|
||||
|
||||
// // trunk is always "master" in github terms, but WordPress has a specific way of describing it
|
||||
// // grab the exact version number to verify that we're on trunk
|
||||
// if ( $requested_version == 'master' ) {
|
||||
// $file = file_get_contents( 'http://core.svn.wordpress.org/trunk/wp-includes/version.php' );
|
||||
// preg_match( '#\$wp_version = \'([^\']+)\';#', $file, $matches );
|
||||
// $requested_version = $matches[1];
|
||||
// }
|
||||
|
||||
// $this->assertEquals( get_bloginfo( 'version' ), $requested_version );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user