public function testSchemaAccess() { $fields = array('foo' => array('type' => 'string')); $schema = new Schema(compact('fields')); $entity = new Entity(compact('schema')); $this->assertEqual($schema, $entity->schema()); }