public/phpmyadmin/test/selenium/TrackingTest.php
/**
     * Tests basic tracking functionality
     *
     * @return void
     *
     * @group large
     */
Tests basic tracking functionality
@return void

@group large
Tests basic tracking functionality @return void @group large
public function testTrackingData()
    {
        $this->_executeSqlAndReturnToTableTracking();
        $this->byPartialLinkText("Tracking report")->click();
        $this->waitForElement(
            "byXPath",
            "//h3[contains(., 'Tracking report')]"
        );
        $this->assertContains(
            "DROP TABLE IF EXISTS `test_table`",
            $this->getCellByTableId('ddl_versions', 1, 4)
        );
        $this->assertContains(
            "CREATE TABLE `test_table` (",
            $this->getCellByTableId('ddl_versions', 2, 4)
        );
        $this->assertContains(
            "UPDATE test_table SET val = val + 1",
            $this->getCellByTableId('dml_versions', 1, 4)
        );
        $this->assertNotContains(
            "DELETE FROM test_table WHERE val = 3",
            $this->byId("dml_versions")->text()
        );
        $this->select($this->byName("logtype"))
            ->selectOptionByLabel("Structure only");
        $this->byCssSelector("input[value='Go']")->click();
        $this->waitAjax();
        $this->assertFalse(
            $this->isElementPresent("byId", "dml_versions")
        );
        $this->assertContains(
            "DROP TABLE IF EXISTS `test_table`",
            $this->getCellByTableId('ddl_versions', 1, 4)
        );
        $this->assertContains(
            "CREATE TABLE `test_table` (",
            $this->getCellByTableId('ddl_versions', 2, 4)
        );
        $this->select($this->waitForElement('byName', "logtype"))
            ->selectOptionByLabel("Data only");
        $this->byCssSelector("input[value='Go']")->click();
        $this->waitAjax();
        $this->assertFalse(
            $this->isElementPresent("byId", "ddl_versions")
        );
        $this->assertContains(
            "UPDATE test_table SET val = val + 1",
            $this->getCellByTableId('dml_versions', 1, 4)
        );
        $this->assertNotContains(
            "DELETE FROM test_table WHERE val = 3",
            $this->byId("dml_versions")->text()
        );
    }
public function testTrackingData ( ) { $ this -> _executeSqlAndReturnToTableTracking ( ) ; $ this -> byPartialLinkText ( " Tracking report " ) -> click ( ) ; $ this -> waitForElement ( " byXPath " , " //h3[contains(., 'Tracking report')] " ) ; $ this -> assertContains ( " DROP TABLE IF EXISTS `test_table` " , $ this -> getCellByTableId ( 'ddl_versions' , 1 , 4 ) ) ; $ this -> assertContains ( " CREATE TABLE `test_table` ( " , $ this -> getCellByTableId ( 'ddl_versions' , 2 , 4 ) ) ; $ this -> assertContains ( " UPDATE test_table SET val = val + 1 " , $ this -> getCellByTableId ( 'dml_versions' , 1 , 4 ) ) ; $ this -> assertNotContains ( " DELETE FROM test_table WHERE val = 3 " , $ this -> byId ( " dml_versions " ) -> text ( ) ) ; $ this -> select ( $ this -> byName ( " logtype " ) ) -> selectOptionByLabel ( " Structure only " ) ; $ this -> byCssSelector ( " input[value='Go'] " ) -> click ( ) ; $ this -> waitAjax ( ) ; $ this -> assertFalse ( $ this -> isElementPresent ( " byId " , " dml_versions " ) ) ; $ this -> assertContains ( " DROP TABLE IF EXISTS `test_table` " , $ this -> getCellByTableId ( 'ddl_versions' , 1 , 4 ) ) ; $ this -> assertContains ( " CREATE TABLE `test_table` ( " , $ this -> getCellByTableId ( 'ddl_versions' , 2 , 4 ) ) ; $ this -> select ( $ this -> waitForElement ( 'byName' , " logtype " ) ) -> selectOptionByLabel ( " Data only " ) ; $ this -> byCssSelector ( " input[value='Go'] " ) -> click ( ) ; $ this -> waitAjax ( ) ; $ this -> assertFalse ( $ this -> isElementPresent ( " byId " , " ddl_versions " ) ) ; $ this -> assertContains ( " UPDATE test_table SET val = val + 1 " , $ this -> getCellByTableId ( 'dml_versions' , 1 , 4 ) ) ; $ this -> assertNotContains ( " DELETE FROM test_table WHERE val = 3 " , $ this -> byId ( " dml_versions " ) -> text ( ) ) ; }
Tests basic tracking functionality
 @return void
Tests basic tracking functionality @return void
// only structure // only data