Changeset 52010 for trunk/tests/phpunit/tests/pomo/noopTranslations.php
- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/pomo/noopTranslations.php
r51568 r52010 5 5 */ 6 6 class Tests_POMO_NOOPTranslations extends WP_UnitTestCase { 7 function set_up() {7 public function set_up() { 8 8 parent::set_up(); 9 9 $this->noop = new NOOP_Translations; … … 18 18 } 19 19 20 function test_get_header() {20 public function test_get_header() { 21 21 $this->assertFalse( $this->noop->get_header( 'Content-Type' ) ); 22 22 } 23 23 24 function test_add_entry() {24 public function test_add_entry() { 25 25 $this->noop->add_entry( $this->entry ); 26 26 $this->assertSame( array(), $this->noop->entries ); 27 27 } 28 28 29 function test_set_header() {29 public function test_set_header() { 30 30 $this->noop->set_header( 'header', 'value' ); 31 31 $this->assertSame( array(), $this->noop->headers ); 32 32 } 33 33 34 function test_translate_entry() {34 public function test_translate_entry() { 35 35 $this->noop->add_entry( $this->entry ); 36 36 $this->assertFalse( $this->noop->translate_entry( $this->entry ) ); 37 37 } 38 38 39 function test_translate() {39 public function test_translate() { 40 40 $this->noop->add_entry( $this->entry ); 41 41 $this->assertSame( 'baba', $this->noop->translate( 'baba' ) ); 42 42 } 43 43 44 function test_plural() {44 public function test_plural() { 45 45 $this->noop->add_entry( $this->plural_entry ); 46 46 $this->assertSame( 'dyado', $this->noop->translate_plural( 'dyado', 'dyados', 1 ) );
Note: See TracChangeset
for help on using the changeset viewer.