[ Index ] |
PHP Cross Reference of GlotPress |
[Summary view] [Print] [Text view]
1 <?php 2 3 class GP_Test_Default_Factories extends GP_UnitTestCase { 4 function test_project_factory_create() { 5 $project_factory = new GP_UnitTest_Factory_For_Project; 6 $project = $project_factory->create(); 7 $this->assertEquals( 'Project 1', $project->name ); 8 } 9 10 function test_project_factory_original() { 11 $original_factory = new GP_UnitTest_Factory_For_Original; 12 $original = $original_factory->create(); 13 $this->assertEquals( 'Original 1', $original->singular ); 14 } 15 16 function test_locale_factory_create() { 17 $locale_factory = new GP_UnitTest_Factory_For_Locale; 18 $locale = $locale_factory->create(); 19 $this->assertEquals( 'aa', $locale->slug ); 20 $this->assertEquals( 'Locale 1', $locale->english_name ); 21 $this->assertSame( $locale, GP_Locales::by_slug( $locale->slug ) ); 22 } 23 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 24 01:01:03 2024 | Cross-referenced by PHPXref 0.7.1 |