Changeset 2081494
- Timestamp:
- 05/06/2019 01:30:03 PM (7 years ago)
- Location:
- wp-frontend-helper
- Files:
-
- 54 added
- 8 edited
-
tags/1.1.1 (added)
-
tags/1.1.1/LICENSE (added)
-
tags/1.1.1/README.md (added)
-
tags/1.1.1/composer.json (added)
-
tags/1.1.1/phpunit.xml (added)
-
tags/1.1.1/readme.txt (added)
-
tags/1.1.1/src (added)
-
tags/1.1.1/src/Assets (added)
-
tags/1.1.1/src/Assets/AssetObserver.php (added)
-
tags/1.1.1/src/Assets/AssetsManager.php (added)
-
tags/1.1.1/src/Commands (added)
-
tags/1.1.1/src/Commands/Command.php (added)
-
tags/1.1.1/src/Commands/CommandsLoader.php (added)
-
tags/1.1.1/src/Commands/EnableMediaVersion.php (added)
-
tags/1.1.1/src/Commands/MediaVersionBust.php (added)
-
tags/1.1.1/src/Exceptions (added)
-
tags/1.1.1/src/Exceptions/InvalidConfiguration.php (added)
-
tags/1.1.1/src/Exceptions/MethodNotFound.php (added)
-
tags/1.1.1/src/Media (added)
-
tags/1.1.1/src/Media/MediaPrinter.php (added)
-
tags/1.1.1/src/Media/MediaTag.php (added)
-
tags/1.1.1/src/Wpfh.php (added)
-
tags/1.1.1/src/WpfhConfig.php (added)
-
tags/1.1.1/src/WpfhOptions.php (added)
-
tags/1.1.1/tests (added)
-
tags/1.1.1/tests/TestCase.php (added)
-
tags/1.1.1/tests/bootstrap.php (added)
-
tags/1.1.1/tests/src (added)
-
tags/1.1.1/tests/src/Assets (added)
-
tags/1.1.1/tests/src/Assets/test-AssetObserver.php (added)
-
tags/1.1.1/tests/src/Assets/test-AssetsManager.php (added)
-
tags/1.1.1/tests/src/Commands (added)
-
tags/1.1.1/tests/src/Commands/test-EnableMediaVersion.php (added)
-
tags/1.1.1/tests/src/Commands/test-MediaVersionBust.php (added)
-
tags/1.1.1/tests/src/Media (added)
-
tags/1.1.1/tests/src/Media/test-MediaPrinter.php (added)
-
tags/1.1.1/tests/src/Media/test-MediaTag.php (added)
-
tags/1.1.1/tests/src/test-Wpfh.php (added)
-
tags/1.1.1/tests/src/test-WpfhConfig.php (added)
-
tags/1.1.1/tests/src/test-WpfhOptions.php (added)
-
tags/1.1.1/uninstall.php (added)
-
tags/1.1.1/vendor (added)
-
tags/1.1.1/vendor/autoload.php (added)
-
tags/1.1.1/vendor/bin (added)
-
tags/1.1.1/vendor/composer (added)
-
tags/1.1.1/vendor/composer/ClassLoader.php (added)
-
tags/1.1.1/vendor/composer/LICENSE (added)
-
tags/1.1.1/vendor/composer/autoload_classmap.php (added)
-
tags/1.1.1/vendor/composer/autoload_namespaces.php (added)
-
tags/1.1.1/vendor/composer/autoload_psr4.php (added)
-
tags/1.1.1/vendor/composer/autoload_real.php (added)
-
tags/1.1.1/vendor/composer/autoload_static.php (added)
-
tags/1.1.1/vendor/composer/installed.json (added)
-
tags/1.1.1/wpfh.php (added)
-
tags/1.1/readme.txt (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/src/Assets/AssetObserver.php (modified) (1 diff)
-
trunk/src/Assets/AssetsManager.php (modified) (1 diff)
-
trunk/src/Media/MediaPrinter.php (modified) (1 diff)
-
trunk/src/WpfhConfig.php (modified) (1 diff)
-
trunk/src/WpfhOptions.php (modified) (1 diff)
-
trunk/tests/src/Media/test-MediaPrinter.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-frontend-helper/tags/1.1/readme.txt
r2074084 r2081494 24 24 == Changelog == 25 25 26 = 1. 0=27 * First release26 = 1.1.1 = 27 * Bug fix: data persistency 28 28 29 29 = 1.1 = 30 30 * Added media versioning functionality 31 31 * Added `if` method to the assets manager 32 33 = 1.0 = 34 * First release -
wp-frontend-helper/trunk/readme.txt
r2074084 r2081494 24 24 == Changelog == 25 25 26 = 1. 0=27 * First release26 = 1.1.1 = 27 * Bug fix: data persistency 28 28 29 29 = 1.1 = 30 30 * Added media versioning functionality 31 31 * Added `if` method to the assets manager 32 33 = 1.0 = 34 * First release -
wp-frontend-helper/trunk/src/Assets/AssetObserver.php
r2064267 r2081494 27 27 */ 28 28 public static function init(): self { 29 $obj = null;29 static $obj = null; 30 30 if ( ! $obj ) { 31 31 $obj = new static(); -
wp-frontend-helper/trunk/src/Assets/AssetsManager.php
r2073854 r2081494 62 62 */ 63 63 public static function init( AssetObserver $observer ): self { 64 $obj = null;64 static $obj = null; 65 65 if ( ! $obj ) { 66 66 $obj = new static( $observer ); -
wp-frontend-helper/trunk/src/Media/MediaPrinter.php
r2073876 r2081494 39 39 */ 40 40 public static function init( WpfhOptions $options ): MediaPrinter { 41 $obj = null;41 static $obj = null; 42 42 if ( ! $obj ) { 43 43 $obj = new static( $options ); -
wp-frontend-helper/trunk/src/WpfhConfig.php
r2073854 r2081494 34 34 */ 35 35 public static function init(): WpfhConfig { 36 $obj = null;36 static $obj = null; 37 37 if ( ! $obj ) { 38 38 $obj = new static(); -
wp-frontend-helper/trunk/src/WpfhOptions.php
r2073876 r2081494 27 27 */ 28 28 public static function init(): WpfhOptions { 29 $obj = null;29 static $obj = null; 30 30 if ( ! $obj ) { 31 31 $obj = new static(); -
wp-frontend-helper/trunk/tests/src/Media/test-MediaPrinter.php
r2073876 r2081494 12 12 13 13 public function test_get_write_save_media() { 14 Functions\expect( 'get_template_directory' )-> once()->andReturn( '/dir' );14 Functions\expect( 'get_template_directory' )->andReturn( '/dir' ); 15 15 $options = \Mockery::mock( \Wpfh\WpfhOptions::class ) 16 ->shouldReceive( 'get' )-> twice()->andReturn( [ 'enable_version' => true, 'version_tag' => '123' ] )16 ->shouldReceive( 'get' )->andReturn( [ 'enable_version' => true, 'version_tag' => '123' ] ) 17 17 ->getMock(); 18 18 $test = \Wpfh\Media\MediaPrinter::init( $options ); … … 26 26 27 27 public function test_get_write_save_media_invalid() { 28 Functions\expect( 'get_template_directory' )-> once()->andReturn( '/dir' );28 Functions\expect( 'get_template_directory' )->andReturn( '/dir' ); 29 29 $options = \Mockery::mock( \Wpfh\WpfhOptions::class ) 30 ->shouldReceive( 'get' )-> once()->andReturn( [ 'enable_version' => true, 'version_tag' => '123' ] )30 ->shouldReceive( 'get' )->andReturn( [ 'enable_version' => true, 'version_tag' => '123' ] ) 31 31 ->getMock(); 32 32 $test = \Wpfh\Media\MediaPrinter::init( $options ); … … 39 39 40 40 public function test_write_tag() { 41 Functions\expect( 'get_template_directory' )-> once()->andReturn( '/dir' );41 Functions\expect( 'get_template_directory' )->andReturn( '/dir' ); 42 42 $options = \Mockery::mock( \Wpfh\WpfhOptions::class ) 43 ->shouldReceive( 'get' )-> twice()->andReturn( [ 'enable_version' => true, 'version_tag' => '123' ] )43 ->shouldReceive( 'get' )->andReturn( [ 'enable_version' => true, 'version_tag' => '123' ] ) 44 44 ->getMock(); 45 45 $test = \Wpfh\Media\MediaPrinter::init( $options );
Note: See TracChangeset
for help on using the changeset viewer.