Documentation

DefaultModelMapperTest extends TestCase

Tests for the DefaultModelMapper class

Table of Contents

testConstructorAndMap() Tests the constructor and map methods. void

Methods

testConstructorAndMap()

Tests the constructor and map methods.

public testConstructorAndMap( ) : void

The constructor must accept a closure that returns an IModel instance. The map method accepts a map of key,value pairs and calls IModel::setValue. setValue is expected to be called once, and it is expected to receive 2 arguments 'a' and 'b'. The map method is expected to return the same IModel instance created by the factory passed to the constructor.

Search results