Mongolid\DataMapper\DataMapperTest::getProjections PHP Method

getProjections() public method

Retrieves projections that should be replaced by mapper.
public getProjections ( )
    public function getProjections()
    {
        return ['Should return self array' => ['projection' => ['some' => true, 'fields' => false], 'expected' => ['some' => true, 'fields' => false]], 'Should convert number' => ['projection' => ['some' => 1, 'fields' => -1], 'expected' => ['some' => true, 'fields' => false]], 'Should add true in fields' => ['projection' => ['some', 'fields'], 'expected' => ['some' => true, 'fields' => true]], 'Should add boolean values according to key value' => ['projection' => ['-some', 'fields'], 'expected' => ['some' => false, 'fields' => true]]];
    }