lithium\tests\cases\data\model\QueryTest::testExportWithUndefinedStrategy PHP Метод

testExportWithUndefinedStrategy() публичный Метод

    public function testExportWithUndefinedStrategy()
    {
        $query = new Query(array('alias' => 'MyAlias', 'model' => 'lithium\\tests\\mocks\\data\\model\\MockGallery', 'calculate' => 'MyCalculate', 'comment' => 'No comment', 'conditions' => array('id' => 2), 'fields' => array('Image.ImageTag.Tag'), 'type' => 'read', 'with' => array('Image.ImageTag.Tag', 'Image', 'Image.ImageTag'), 'strategy' => 'custom'));
        $db = $this->_db;
        $this->assertException('Undefined query strategy `custom`.', function () use($query, $db) {
            $query->export($db);
        });
    }