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:
parent
c90a2a5d3b
commit
eef7258ca6
@ -1,6 +1,6 @@
|
||||
WordPress - Web publishing software
|
||||
|
||||
Copyright 2013 by the contributors
|
||||
Copyright 2014 by the contributors
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user