lithium\tests\cases\data\ModelTest::testAttributesInheritanceWithObject PHP Method

testAttributesInheritanceWithObject() public method

    public function testAttributesInheritanceWithObject()
    {
        $expected = array('id' => array('type' => 'id'), 'title' => array('type' => 'string', 'null' => false), 'body' => array('type' => 'text', 'null' => false));
        $schema = new Schema(array('fields' => $expected));
        MockSubProduct::config(compact('schema'));
        $result = MockSubProduct::schema();
        $this->assertEqual($expected, $result->fields());
    }
ModelTest