Test Database

Test Slug Count Increment (ASSERT: TRUE, CONDITION: category=car~color=red.html)

TRUE

Test Slug Count Read (ASSERT: >0, CONDITION: category=car~color=red.html)

10

Test Slug Count Read (ASSERT: 0, CONDITION: category=cardfadfafd~color=redadadfadfs.html)

0

Get Products (ASSERT: >1 Result, CONDITION: all products)

mResult = [ ]  
[0]  
0 = [ ]  
[product_id]   "veh_jag_xjs"
[qty_on_hand]   "2"
[description]   "Top of the line English Roadster"
[category]   "car"
[make]   "Jaguar"
[model]   "XJ-S"
[year]   "1995"
[color]   "white"
[price]   "38000"

[1]  
1 = [ ]  
[product_id]   "veh_jag_xjs"
[qty_on_hand]   "1"
[description]   "Top of the line English Roadster"
[category]   "car"
[make]   "Jaguar"
[model]   "XJ-S"
[year]   "1995"
[color]   "red"
[price]   "38000"

[2]  
2 = [ ]  
[product_id]   "veh_jag_xjs"
[qty_on_hand]   "1"
[description]   "Top of the line English Roadster"
[category]   "car"
[make]   "Jaguar"
[model]   "XJ-S"
[year]   "1995"
[color]   "black"
[price]   "38000"

[3]  
3 = [ ]  
[product_id]   "veh_bmw_320i"
[qty_on_hand]   "1"
[description]   "Amazing German Car"
[category]   "car"
[make]   "BMW"
[model]   "320i"
[year]   "1997"
[color]   "black"
[price]   "36000"

[4]  
4 = [ ]  
[product_id]   "veh_bmw_320i"
[qty_on_hand]   "3"
[description]   "Amazing German Car"
[category]   "car"
[make]   "BMW"
[model]   "320i"
[year]   "1998"
[color]   "grey"
[price]   "36000"

[5]  
5 = [ ]  
[product_id]   "veh_bmw_320i"
[qty_on_hand]   "5"
[description]   "Amazing German Car"
[category]   "car"
[make]   "BMW"
[model]   "320i"
[year]   "1997"
[color]   "white"
[price]   "36000"

[6]  
6 = [ ]  
[product_id]   "veh_mg_bgt"
[qty_on_hand]   "1"
[description]   "Rare Classic Sports Car"
[category]   "car"
[make]   "MG"
[model]   "B-GT"
[year]   "1971"
[color]   "white"
[price]   "25000"


Get Products (ASSERT: 1 Result, CONDITION: 'make'=>'Jaguar', 'color'=>'black')

mResult = [ ]  
[0]  
0 = [ ]  
[product_id]   "veh_jag_xjs"
[qty_on_hand]   "1"
[description]   "Top of the line English Roadster"
[category]   "car"
[make]   "Jaguar"
[model]   "XJ-S"
[year]   "1995"
[color]   "black"
[price]   "38000"