PDO4You\PDO4YouTest::testMultipleDeleteInJsonFormat PHP Method

testMultipleDeleteInJsonFormat() public method

    public function testMultipleDeleteInJsonFormat()
    {
        // SQL Delete in JSON format
        $json = '
        delete: [
            { table: "books" , where: { id: 200 } } ,
            { table: "users" , where: { id: 1 } } ,
            { table: "users" , where: { id: 300 } } 
        ]
        ';
        // Executes the SQL and stores the result
        $result = test::execute($json);
        $this->assertEquals(1, self::getNumRowsAffected($result), 'Test with Delete command');
    }