- Timestamp:
- 07/21/2020 03:27:48 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/sitemaps/sitemaps-registry.php
r48072 r48536 5 5 */ 6 6 class Test_WP_Sitemaps_Registry extends WP_UnitTestCase { 7 public function test_add_ sitemap() {7 public function test_add_provider() { 8 8 $provider = new WP_Sitemaps_Test_Provider(); 9 9 $registry = new WP_Sitemaps_Registry(); 10 10 11 $actual = $registry->add_ sitemap( 'foo', $provider );12 $sitemaps = $registry->get_ sitemaps();11 $actual = $registry->add_provider( 'foo', $provider ); 12 $sitemaps = $registry->get_providers(); 13 13 14 14 $this->assertTrue( $actual ); … … 17 17 } 18 18 19 public function test_add_ sitemap_prevent_duplicates() {19 public function test_add_provider_prevent_duplicates() { 20 20 $provider1 = new WP_Sitemaps_Test_Provider(); 21 21 $provider2 = new WP_Sitemaps_Test_Provider(); 22 22 $registry = new WP_Sitemaps_Registry(); 23 23 24 $actual1 = $registry->add_ sitemap( 'foo', $provider1 );25 $actual2 = $registry->add_ sitemap( 'foo', $provider2 );26 $sitemaps = $registry->get_ sitemaps();24 $actual1 = $registry->add_provider( 'foo', $provider1 ); 25 $actual2 = $registry->add_provider( 'foo', $provider2 ); 26 $sitemaps = $registry->get_providers(); 27 27 28 28 $this->assertTrue( $actual1 );
Note: See TracChangeset
for help on using the changeset viewer.