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

testStrategyConstructionSettings() public method

    public function testStrategyConstructionSettings()
    {
        $mockConfigurizer = 'lithium\\tests\\mocks\\storage\\cache\\strategy\\MockConfigurizer';
        $strategy = new MockStrategy();
        $items = array('default' => array('strategies' => array($mockConfigurizer => array('key1' => 'value1', 'key2' => 'value2')), 'filters' => array(), 'adapter' => null));
        $strategy::config($items);
        $result = $strategy::config();
        $expected = $items;
        $this->assertEqual($expected, $result);
        $result = $strategy::strategies('default');
        $this->assertInstanceOf('SplDoublyLinkedList', $result);
        $this->assertEqual(count($result), 1);
        $this->assertInstanceOf($mockConfigurizer, $result->top());
    }