WPG2 Unit Tests
Activation
- WPG2 Options (Default), WPG2 Paths (Blank)
- WPG2 Reactivation, WPG2 Settings Archive Loaded
- Wordpress Returns No Errors
Deactivation
- WPG2 Removes Options / Paths
- Wordpress Returns No Errors
- Externally Mapped User is Logged into Gallery2
- Externally Mapped User can be Created in Gallery2
- Externally Mapped User can be Deleted in Gallery2
- Externally Mapped User can be Granted Admin in Gallery2
- Externally Mapped User can be removed from Admin in Gallery2
- Unmapped User is Not Logged into Gallery2 (GUEST)
- Simple Path Detection on First Validation
- Imageblock Module is Tested
- Imageframe Module is Tested
- Wordpress Version is Tested
- Gallery2 Version is Tested
- Gallery2 Rewrite Module is Tested (&/or deactivated)
- WPG2 Grid, Block and Blog Displays Not Validated
- Wordpress functions without WPG2 Errors.
WPG2 Output
- WPG2 (WPG2ID) Tags Correctly Insert Photo in G2image
- WPG2 (WPG2ID) Tags Correctly Insert Variable Size Photo in G2image
- Sidebar Block Correctly output images has a Frame , Heading
- Sidebar Grid Correctly outputs images, has a heading
- Blog Images have Frames (Both Albums /Items)
- Sidebar Grid Widget can e activated
- Album Tree Widget can be activated
- Sidebar Block Widget can be activated
- Output is W3C Valid.
- WPG2Header / WPG2Footer is Correctly Outputted.
- Change Page Post Slug , Permalink Active, Gallery2 Rewrites ON
- Change Page Post Slug , Permalink Active, Gallery2 Rewrites OFF
- Change Page Post Slug , Permalink Not Active, Gallery2 Rewrites OFF
- Deleting Page results in switching to Gallery2 Main Page
Permalinks
- Permalinks Off - Navigate to WPG2 Output Page, WPG2 Album Page
- Permalinks On, Gallery2 Rewrites OFF - Navigate to WPG2 Output Page, WPG2 Album Page
- Permalinks On, Gallery2 Rewrites ON - Navigate to WPG2 Output Page, WPG2 Album Page
- Sidebar Grid can be Activated
- Album Tree can be Activated
- Sidebar Block can be Activated
- Lightbox Script Loads without Errors
- Sidebar Grid correctly tagged with rel=lightbox & Load
- Sidebar Block correctly tagged with rel=lightbox & Load
- Blog Images correctly tagged with rel=lightbox
- Lightbox Internal Script Settings can be changed via Lightbox Options
- Lightbox correcly finds Resized Images
