Your IP : 192.168.165.1


Current Path : C:/Users/Mahmood/Desktop/moodle8/lib/tests/fixtures/
Upload File :
Current File : C:/Users/Mahmood/Desktop/moodle8/lib/tests/fixtures/statslib-test07.xml

<?xml version="1.0" encoding="UTF-8" ?>
<!-- User login and view course (not enrolled) - Tests queries 13 (not enroled), 14 (not default) -->
<dataset>
    <table name="log">
        <column>time</column>
        <column>userid</column>
        <column>course</column>
        <column>action</column>
        <row>
            <value>[start_1]</value>
            <value>[user2_id]</value>
            <value>[site_id]</value>
            <value>login</value>
        </row>
        <row>
            <value>[start_2]</value>
            <value>[user2_id]</value>
            <value>[site_id]</value>
            <value>view</value>
        </row>
        <row>
            <value>[start_3]</value>
            <value>[user2_id]</value>
            <value>[course1_id]</value>
            <value>view</value>
        </row>
    </table>
    <table name="stats_daily">
        <column>courseid</column>
        <column>timeend</column>
        <column>roleid</column>
        <column>stattype</column>
        <column>stat1</column>
        <column>stat2</column>
        <!-- Query 2 -->
        <row>
            <value>[site_id]</value>
            <value>[end]</value>
            <value>0</value>
            <value>logins</value>
            <value>1</value>
            <value>1</value>
        </row>
        <!-- Query 3 -->
        <row>
            <value>[course1_id]</value>
            <value>[end]</value>
            <value>[student_roleid]</value>
            <value>enrolments</value>
            <value>1</value>
            <value>0</value>
        </row>
        <!-- Query 5 -->
        <row>
            <value>[course1_id]</value>
            <value>[end]</value>
            <value>0</value>
            <value>enrolments</value>
            <value>1</value>
            <value>0</value>
        </row>
        <!-- Query 7 -->
        <row>
            <value>[site_id]</value>
            <value>[end]</value>
            <value>0</value>
            <value>enrolments</value>
            <value>4</value>
            <value>1</value>
        </row>
        <!-- Query 9 -->
        <row>
            <value>[site_id]</value>
            <value>[end]</value>
            <value>[frontpage_roleid]</value>
            <value>enrolments</value>
            <value>4</value>
            <value>1</value>
        </row>
        <!-- Query 11 -->
        <row>
            <value>[site_id]</value>
            <value>[end]</value>
            <value>0</value>
            <value>activity</value>
            <value>1</value>
            <value>0</value>
        </row>
        <!-- Query 11 -->
        <row>
            <value>[course1_id]</value>
            <value>[end]</value>
            <value>0</value>
            <value>activity</value>
            <value>1</value>
            <value>0</value>
        </row>
        <!-- Query 13 -->
        <row>
            <value>[course1_id]</value>
            <value>[end]</value>
            <value>[guest_roleid]</value>
            <value>activity</value>
            <value>1</value>
            <value>0</value>
        </row>
        <!-- Query 14 -->
        <row>
            <value>[site_id]</value>
            <value>[end]</value>
            <value>[frontpage_roleid]</value>
            <value>activity</value>
            <value>1</value>
            <value>0</value>
        </row>
    </table>
    <table name="stats_user_daily">
        <column>courseid</column>
        <column>userid</column>
        <column>roleid</column>
        <column>timeend</column>
        <column>statsreads</column>
        <column>statswrites</column>
        <column>stattype</column>
        <!-- Query 1 -->
        <row>
            <value>[site_id]</value>
            <value>[user2_id]</value>
            <value>0</value>
            <value>[end]</value>
            <value>1</value>
            <value>0</value>
            <value>logins</value>
        </row>
        <!-- Query 10 -->
        <row>
            <value>[course1_id]</value>
            <value>[user2_id]</value>
            <value>0</value>
            <value>[end]</value>
            <value>1</value>
            <value>0</value>
            <value>activity</value>
        </row>
        <!-- Query 10 -->
        <row>
            <value>[site_id]</value>
            <value>[user2_id]</value>
            <value>0</value>
            <value>[end]</value>
            <value>1</value>
            <value>0</value>
            <value>activity</value>
        </row>
        <!-- Query 10 - default record -->
        <row>
            <value>[site_id]</value>
            <value>0</value>
            <value>0</value>
            <value>[end]</value>
            <value>0</value>
            <value>0</value>
            <value>activity</value>
        </row>
    </table>
</dataset>