lithium\tests\cases\core\AdaptableTest::testConfig PHP Method

testConfig() public method

public testConfig ( )
    public function testConfig()
    {
        $this->assertEmpty($this->adaptable->config());
        $items = array(array('adapter' => 'some\\adapter', 'filters' => array('filter1', 'filter2')));
        $result = $this->adaptable->config($items);
        $this->assertNull($result);
        $expected = $items;
        $result = $this->adaptable->config();
        $this->assertEqual($expected, $result);
        $items = array(array('adapter' => 'some\\adapter', 'filters' => array('filter1', 'filter2')));
        $this->adaptable->config($items);
        $result = $this->adaptable->config();
        $expected = $items;
        $this->assertEqual($expected, $result);
    }