mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 20:24:26 +00:00
Update license copyright year to 2014.
fixes #27728. git-svn-id: https://develop.svn.wordpress.org/trunk@28064 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -29,6 +29,13 @@ class Tests_Basic extends WP_UnitTestCase {
|
||||
$this->assertEquals( $version, trim( $matches[1] ), "readme.html's version needs to be updated to $version." );
|
||||
}
|
||||
|
||||
function test_license() {
|
||||
$license = file_get_contents( ABSPATH . 'license.txt' );
|
||||
preg_match( '#Copyright (\d+) by the contributors#', $license, $matches );
|
||||
$this_year = date( 'Y' );
|
||||
$this->assertEquals( $this_year, trim( $matches[1] ), "license.txt's year needs to be updated to $this_year." );
|
||||
}
|
||||
|
||||
function test_package_json() {
|
||||
$package_json = file_get_contents( dirname( ABSPATH ) . '/package.json' );
|
||||
$package_json = json_decode( $package_json, true );
|
||||
|
||||
Reference in New Issue
Block a user