lithium\tests\integration\data\source\database\adapter\MySqlTest::testEnabledFeatures PHP Method

testEnabledFeatures() public method

public testEnabledFeatures ( )
    public function testEnabledFeatures()
    {
        $supported = array('booleans', 'schema', 'relationships', 'sources');
        $notSupported = array('arrays', 'transactions');
        foreach ($supported as $feature) {
            $this->assertTrue(MySql::enabled($feature));
        }
        foreach ($notSupported as $feature) {
            $this->assertFalse(MySql::enabled($feature));
        }
        $this->assertNull(MySql::enabled('unexisting'));
    }