MediaWiki  REL1_22
ORMRowTest Class Reference
Inheritance diagram for ORMRowTest:
Collaboration diagram for ORMRowTest:

List of all members.

Public Member Functions

 constructorTestProvider ()
 instanceProvider ()
 testConstructor (array $data, $loadDefaults)
 constructorTestProvider
 testSaveAndRemove (array $data, $loadDefaults)
 constructorTestProvider
 testSetField (IORMRow $item)
 instanceProvider
 testSetFields (IORMRow $item)
 instanceProvider

Protected Member Functions

 assertFieldValues (array $expected, IORMRow $item)
 getMockFields ()
 getMockValues ()
 getRowClass ()
 getRowInstance (array $data, $loadDefaults)
 getTableInstance ()
 verifyFields (IORMRow $row, array $data)

Detailed Description

Definition at line 40 of file ORMRowTest.php.


Member Function Documentation

ORMRowTest::assertFieldValues ( array expected,
IORMRow item 
) [protected]
Since:
1.20
Parameters:
array$expected
IORMRow$item

Definition at line 186 of file ORMRowTest.php.

References $name, as, and IORMRow\getField().

Referenced by testSetFields().

Since:
1.20
Returns:
array

Reimplemented in TestORMRowTest.

Referenced by instanceProvider().

ORMRowTest::getMockFields ( ) [protected]
Since:
1.20
Returns:
array

Definition at line 103 of file ORMRowTest.php.

References $name, array(), as, getMockValues(), and getTableInstance().

Referenced by testSetField(), and testSetFields().

ORMRowTest::getMockValues ( ) [protected]
Since:
1.20
Returns:
array

Reimplemented in TestORMRowTest.

Definition at line 87 of file ORMRowTest.php.

References array().

Referenced by getMockFields().

ORMRowTest::getRowClass ( ) [abstract, protected]
Since:
1.20
Returns:
string

Reimplemented in TestORMRowTest.

Referenced by getRowInstance().

ORMRowTest::getRowInstance ( array data,
loadDefaults 
) [protected]
Since:
1.20
Parameters:
array$data
boolean$loadDefaults
Returns:
IORMRow

Definition at line 77 of file ORMRowTest.php.

References getRowClass(), and getTableInstance().

Referenced by testConstructor(), and testSaveAndRemove().

ORMRowTest::getTableInstance ( ) [abstract, protected]
Since:
1.20
Returns:
IORMTable

Reimplemented in TestORMRowTest.

Referenced by getMockFields(), and getRowInstance().

Since:
1.20
Returns:
array of IORMRow

Definition at line 120 of file ORMRowTest.php.

References array(), as, and constructorTestProvider().

ORMRowTest::testConstructor ( array data,
loadDefaults 
)

constructorTestProvider

Definition at line 133 of file ORMRowTest.php.

References getRowInstance(), and verifyFields().

ORMRowTest::testSaveAndRemove ( array data,
loadDefaults 
)

constructorTestProvider

Definition at line 140 of file ORMRowTest.php.

References getRowInstance(), and verifyFields().

instanceProvider

Definition at line 174 of file ORMRowTest.php.

References $name, $value, as, IORMRow\getField(), getMockFields(), and IORMRow\setField().

ORMRowTest::verifyFields ( IORMRow row,
array data 
) [protected]
Since:
1.20
Parameters:
IORMRow$row
array$data

Definition at line 65 of file ORMRowTest.php.

References as, and IORMRow\getField().

Referenced by testConstructor(), and testSaveAndRemove().


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