MediaWiki  REL1_20
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
 testRemove (array $data, $loadDefaults)
 constructorTestProvider
 testSave (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 194 of file ORMRowTest.php.

References 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 102 of file ORMRowTest.php.

References getMockValues(), and getTableInstance().

Referenced by testSetField(), and testSetFields().

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

Definition at line 86 of file ORMRowTest.php.

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(), testRemove(), and testSave().

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 119 of file ORMRowTest.php.

References constructorTestProvider().

ORMRowTest::testConstructor ( array $  data,
loadDefaults 
)

constructorTestProvider

Definition at line 132 of file ORMRowTest.php.

References getRowInstance(), and verifyFields().

ORMRowTest::testRemove ( array $  data,
loadDefaults 
)

constructorTestProvider

Definition at line 159 of file ORMRowTest.php.

References getRowInstance(), and verifyFields().

ORMRowTest::testSave ( array $  data,
loadDefaults 
)

constructorTestProvider

Definition at line 139 of file ORMRowTest.php.

References getRowInstance(), and verifyFields().

instanceProvider

Definition at line 182 of file ORMRowTest.php.

References $value, 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 IORMRow\getField().

Referenced by testConstructor(), testRemove(), and testSave().


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