File Manager / wp-content Search Upload New Item Settings File "db5.php" Full path: /home1/epichome/public_html/wp-content/db5.php File size: 60.67 B (60.67 KB bytes) MIME-type: text/x-php Charset: utf-8 Download Open Edit Advanced Editor Back
/home/pharmacy/www/wp-content/plugins/sendpress/tests/test_wordpress_plugin_tests.php
<?php

/**
 * Tests to test that that testing framework is testing tests. Meta, huh?
 *
 * @package wordpress-plugins-tests
 */
class WP_Test_WordPress_Plugin_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.
	 *
	 * @requires PHP 5.3
	 */
	/*
		function test_wp_version() {

			if ( !getenv( 'TRAVIS' ) )
				$this->markTestSkipped( 'Test skipped since Travis CI was not detected.' );

			$requested_version = getenv( 'WP_VERSION' ) . '-src';

			// The "master" version requires special handling.
			if ( $requested_version == 'master-src' ) {
				$file = file_get_contents( 'https://raw.github.com/tierra/wordpress/master/src/wp-includes/version.php' );
				preg_match( '#\$wp_version = \'([^\']+)\';#', $file, $matches );
				$requested_version = $matches[1];
			}

			$this->assertEquals( get_bloginfo( 'version' ), $requested_version );

		}
	*/
	/**
	 * Ensure that the plugin has been installed and activated.
	 */
	function test_plugin_activated() {

		$this->assertTrue( is_plugin_active( 'sendpress/sendpress.php' ) );

	}

}