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

testReset() public method

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