Make WordPress Core

Changeset 1170 in tests for trunk/tests/pomo/test_po.php


Ignore:
Timestamp:
12/19/2012 12:56:28 AM (12 years ago)
Author:
SergeyBiryukov
Message:

Use DIR_TESTDATA in pomo tests. props mbijon. see #22989.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/pomo/test_po.php

    r1106 r1170  
    175175    function test_import_from_file() {
    176176        $po = new PO();
    177         $res = $po->import_from_file('data/pomo/simple.po');
     177        $res = $po->import_from_file(DIR_TESTDATA . '/pomo/simple.po');
    178178        $this->assertEquals(true, $res);
    179179
     
    205205    function test_import_from_entry_file_should_give_false() {
    206206        $po = new PO();
    207         $this->assertFalse( $po->import_from_file( 'data/pomo/empty.po' ) );
     207        $this->assertFalse( $po->import_from_file( DIR_TESTDATA . '/pomo/empty.po' ) );
    208208    }
    209209
    210210    function test_import_from_file_with_windows_line_endings_should_work_as_with_unix_line_endings() {
    211211        $po = new PO();
    212         $this->assertTrue( $po->import_from_file( 'data/pomo/windows-line-endings.po' ) );
     212        $this->assertTrue( $po->import_from_file( DIR_TESTDATA . '/pomo/windows-line-endings.po' ) );
    213213        $this->assertEquals( 1, count( $po->entries ) );
    214214    }
Note: See TracChangeset for help on using the changeset viewer.