Changeset 55010 for trunk/tests/phpunit/tests/l10n/wpTextdomainRegistry.php
- Timestamp:
- 12/20/2022 03:10:35 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/l10n/wpTextdomainRegistry.php
r54669 r55010 29 29 $reflection_property->setAccessible( true ); 30 30 31 $this->assert Null(31 $this->assertEmpty( 32 32 $reflection_property->getValue( $this->instance ), 33 33 'Cache not empty by default' … … 76 76 $reflection_property->getValue( $this->instance ), 77 77 'Default plugins path missing from cache' 78 );79 }80 81 /**82 * @covers ::get_path_from_lang_dir83 */84 public function test_get_does_not_check_themes_directory_for_plugin() {85 $reflection = new ReflectionClass( $this->instance );86 $reflection_property = $reflection->getProperty( 'cached_mo_files' );87 $reflection_property->setAccessible( true );88 89 $this->instance->get( 'internationalized-plugin', 'de_DE' );90 91 $this->assertArrayHasKey(92 WP_LANG_DIR . '/plugins',93 $reflection_property->getValue( $this->instance ),94 'Default plugins path missing from cache'95 );96 $this->assertArrayNotHasKey(97 WP_LANG_DIR . '/themes',98 $reflection_property->getValue( $this->instance ),99 'Default themes path should not be in cache'100 78 ); 101 79 }
Note: See TracChangeset
for help on using the changeset viewer.