Open Journal Systems  3.3.0
MetadataDescriptionTest Class Reference
Inheritance diagram for MetadataDescriptionTest:
PKPTestCase

Public Member Functions

 testAddStatement ()
 
 testSetStatements ()
 
- Public Member Functions inherited from PKPTestCase
 getActualOutput ()
 

Static Public Attributes

static $testStatementsData
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from PKPTestCase
 getMockedDAOs ()
 
 getMockedRegistryKeys ()
 
 mockRequest ($path='index/test-page/test-op', $userId=null)
 
 setTestConfiguration ($config, $configPath='config')
 
 tearDown ()
 

Additional Inherited Members

- Data Fields inherited from PKPTestCase
 $mockedRegistryKeys = array()
 
 $registryBackup = array()
 

Detailed Description

Test class for MetadataDescription.

See also
MetadataDescription

Definition at line 20 of file MetadataDescriptionTest.php.

Member Function Documentation

◆ setUp()

MetadataDescriptionTest::setUp ( )
protected

Reimplemented from PKPTestCase.

Definition at line 59 of file MetadataDescriptionTest.php.

◆ testAddStatement()

MetadataDescriptionTest::testAddStatement ( )

◆ testSetStatements()

MetadataDescriptionTest::testSetStatements ( )

Definition at line 75 of file MetadataDescriptionTest.php.

References $testStatementsData.

Field Documentation

◆ $testStatementsData

MetadataDescriptionTest::$testStatementsData
static
Initial value:
= array (
'not-translated-one' => 'nto',
'not-translated-many' => array (
0 => 'ntm1',
1 => 'ntm2'
),
'translated-one' => array (
'en_US' => 'to_en',
'de_DE' => 'to_de'
),
'translated-many' => array (
'en_US' => array (
0 => 'tm1_en',
1 => 'tm2_en'
),
'de_DE' => array (
0 => 'tm1_de',
1 => 'tm2_de'
)
)
)

Definition at line 37 of file MetadataDescriptionTest.php.

Referenced by testSetStatements().


The documentation for this class was generated from the following file: